Code Monkey home page Code Monkey logo

Comments (1)

kyungeunni avatar kyungeunni commented on September 25, 2024

+1 on this issue.

otel-webserver-module Nginx instrumentation doesn't add required attributes according to HTTP semantic conventions, at least for HTTP Client span.

To give you a concrete example, I instrumented nginx app using the steps mentioned in this [blog]. I noticed a Span named ngx_http_otel_mirror_handler_ which seems to proxy a request. The only attribute it contain is interactionType: Str(EXIT_CALL). This Span is an HTTP Client span and I expect to see it contains required attributes.

Here's the example from the collector:

2024-04-03 13:42:15 Span #10
2024-04-03 13:42:15     Trace ID       : 5d63285f0ac981b795de11849eb46803
2024-04-03 13:42:15     Parent ID      : 454268c37f58c99e
2024-04-03 13:42:15     ID             : cf87334511ce3de3
2024-04-03 13:42:15     Name           : ngx_http_otel_mirror_handler_
2024-04-03 13:42:15     Kind           : Client
2024-04-03 13:42:15     Start time     : 2024-04-03 04:42:10.916024295 +0000 UTC
2024-04-03 13:42:15     End time       : 2024-04-03 04:42:10.916064337 +0000 UTC
2024-04-03 13:42:15     Status code    : Ok
2024-04-03 13:42:15     Status message : 
2024-04-03 13:42:15 Attributes:
2024-04-03 13:42:15      -> interactionType: Str(EXIT_CALL)

from opentelemetry-cpp-contrib.

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.