Giter Site home page Giter Site logo

Comments (3)

vasiliy-grinko avatar vasiliy-grinko commented on July 19, 2024

I managed to generate ID for X-Ray by editing NewController() function:
added lines:

idg := xray.NewIDGenerator()
otel.SetTracerProvider(tracerProvider)
otel.SetTextMapPropagator(xray.Propagator{})

chenaged line 114 sdktrace.WithIDGenerator(idg),

I also want to add status code and path of a request into traces

from opentelemetry-go-instrumentation.

edeNFed avatar edeNFed commented on July 19, 2024

Sounds good, I will be happy to accept a PR.

from opentelemetry-go-instrumentation.

vasiliy-grinko avatar vasiliy-grinko commented on July 19, 2024

Sounds good, I will be happy to accept a PR.

I'll create it after I fix this problem: in X-Ray I don't see a status code and a request path, in otel-collector logs I see this
2022-11-02T10:46:12.185Z debug [email protected]/awsxray.go:67 request: { TraceSegmentDocuments: ["{\"name\":\"backend\",\"id\":\"dc653d4977e1457b\",\"start_time\":1667385967.2310646,\"trace_id\":\"1-63624a6f-f40d0a0ff943e053208c61cd\",\"end_time\":1667385967.2310905,\"http\":{\"request\":{\"method\":\"GET\"},\"re} {"kind": "exporter", "data_type": "traces", "name": "awsxray"} 2022-11-02T10:46:12.192Z debug [email protected]/awsxray.go:74 response: { UnprocessedTraceSegments: [] } {"kind": "exporter", "data_type": "traces", "name": "awsxray"}

from opentelemetry-go-instrumentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.