Skip to content

Commit

Permalink
move grpc_trace_bin_propagator to experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans committed Dec 11, 2024
1 parent b39e7f6 commit fd76cd0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion stats/opentelemetry/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package opentelemetry
import (
"context"
"fmt"
"google.golang.org/grpc/stats/opentelemetry/experimental"
"io"
"testing"
"time"
Expand Down Expand Up @@ -87,7 +88,7 @@ func defaultTraceOptions(_ *testing.T) (*TraceOptions, *tracetest.InMemoryExport
spanExporter := tracetest.NewInMemoryExporter()
spanProcessor := trace.NewSimpleSpanProcessor(spanExporter)
tracerProvider := trace.NewTracerProvider(trace.WithSpanProcessor(spanProcessor))
textMapPropagator := propagation.NewCompositeTextMapPropagator(GRPCTraceBinPropagator{})
textMapPropagator := propagation.NewCompositeTextMapPropagator(experimental.GRPCTraceBinPropagator{})
traceOptions := &TraceOptions{
TracerProvider: tracerProvider,
TextMapPropagator: textMapPropagator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*/

package opentelemetry
package experimental

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
*
*/

package opentelemetry
package experimental

import (
"context"
"google.golang.org/grpc/internal/grpctest"
"testing"

"github.com/google/go-cmp/cmp"
Expand All @@ -28,6 +29,14 @@ import (
itracing "google.golang.org/grpc/stats/opentelemetry/internal/tracing"
)

type s struct {
grpctest.Tester
}

func Test(t *testing.T) {
grpctest.RunSubTests(t, s{})
}

var validSpanContext = oteltrace.SpanContext{}.WithTraceID(
oteltrace.TraceID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}).WithSpanID(
oteltrace.SpanID{17, 18, 19, 20, 21, 22, 23, 24}).WithTraceFlags(
Expand Down

0 comments on commit fd76cd0

Please sign in to comment.