Skip to content

Commit

Permalink
Move internal/otlptext to exporter/loggingexporter/internal, only usa…
Browse files Browse the repository at this point in the history
…ge (open-telemetry#5483)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Jun 21, 2022
1 parent 2a5e359 commit 31b2f5c
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otlptext // import "go.opentelemetry.io/collector/internal/otlptext"
package otlptext // import "go.opentelemetry.io/collector/exporter/loggingexporter/internal/otlptext"

import (
"bytes"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otlptext // import "go.opentelemetry.io/collector/internal/otlptext"
package otlptext // import "go.opentelemetry.io/collector/exporter/loggingexporter/internal/otlptext"

import (
"go.opentelemetry.io/collector/pdata/plog"
)

// NewTextLogsMarshaler returns a serializer.Marshaler to encode to OTLP text bytes.
// NewTextLogsMarshaler returns a plog.Marshaler to encode to OTLP text bytes.
func NewTextLogsMarshaler() plog.Marshaler {
return textLogsMarshaler{}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otlptext // import "go.opentelemetry.io/collector/internal/otlptext"
package otlptext // import "go.opentelemetry.io/collector/exporter/loggingexporter/internal/otlptext"

import "go.opentelemetry.io/collector/pdata/pmetric"

// NewTextMetricsMarshaler returns a serializer.Marshaler to encode to OTLP text bytes.
// NewTextMetricsMarshaler returns a pmetric.Marshaler to encode to OTLP text bytes.
func NewTextMetricsMarshaler() pmetric.Marshaler {
return textMetricsMarshaler{}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package otlptext // import "go.opentelemetry.io/collector/internal/otlptext"
package otlptext // import "go.opentelemetry.io/collector/exporter/loggingexporter/internal/otlptext"

import (
"go.opentelemetry.io/collector/pdata/ptrace"
)

// NewTextTracesMarshaler returns a serializer.Marshaler to encode to OTLP text bytes.
// NewTextTracesMarshaler returns a ptrace.Marshaler to encode to OTLP text bytes.
func NewTextTracesMarshaler() ptrace.Marshaler {
return textTracesMarshaler{}
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion exporter/loggingexporter/logging_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"go.opentelemetry.io/collector/config"
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/exporter/exporterhelper"
"go.opentelemetry.io/collector/internal/otlptext"
"go.opentelemetry.io/collector/exporter/loggingexporter/internal/otlptext"
"go.opentelemetry.io/collector/pdata/plog"
"go.opentelemetry.io/collector/pdata/pmetric"
"go.opentelemetry.io/collector/pdata/ptrace"
Expand Down

0 comments on commit 31b2f5c

Please sign in to comment.