Closed wamdy closed 1 year ago
I think I sloved it.
defaultClient := http.DefaultClient defaultClient.Transport = otelhttp.NewTransport( http.DefaultTransport, otelhttp.WithPropagators(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation. Baggage{})), ) opt:= graphql.WithHTTPClient(defaultClient) client := graphql.NewClient(url,opt)
OpenTelemetry info can't transfer to the called api,I hav filled the ctx on client.Run(ctx, req, &result)