Skip to content

Add Instrumentation for go-chi/chi#986

Closed
riandyrn wants to merge 4 commits into
open-telemetry:mainfrom
riandyrn:chi
Closed

Add Instrumentation for go-chi/chi#986
riandyrn wants to merge 4 commits into
open-telemetry:mainfrom
riandyrn:chi

Conversation

@riandyrn

Copy link
Copy Markdown

This update contains tracing instrumentation for https://github.com/go-chi/chi.

Inspired heavily by otelmux.

Tracing

  • attributes:
    • semconv.HTTPAttributesFromHTTPStatusCode
    • semconv.NetAttributesFromHTTPRequest
    • semconv.EndUserAttributesFromHTTPRequest
    • semconv.HTTPServerAttributesFromHTTPRequest
    • semconv.SpanStatusFromHTTPStatusCode
  • events:
    • Incoming HTTP request

…TTPServerAttributesFromHTTPRequest(); add explanation comment why we execute the request first before setting up span attributes;
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 13, 2021

Copy link
Copy Markdown

CLA Signed

The committers are authorized under a signed CLA.

@riandyrn riandyrn changed the title Add Instrumentation for go-chi/chi [WIP] Add Instrumentation for go-chi/chi Aug 13, 2021
@riandyrn
riandyrn marked this pull request as ready for review August 13, 2021 13:00
@riandyrn riandyrn changed the title [WIP] Add Instrumentation for go-chi/chi Add Instrumentation for go-chi/chi Aug 13, 2021
@riandyrn

Copy link
Copy Markdown
Author

Hello, @pellared & @Aneurysm9

Is there maybe something I should improve from this PR?

Thanks

@vinicius73

Copy link
Copy Markdown

That is great to me.
I am looking forward to this merge.

@MrAlias

MrAlias commented Oct 12, 2021

Copy link
Copy Markdown
Contributor

Thanks for the contribution. According to our new instrumentation policy, we are no longer accepting new instrumentation to the project as we do not have the developer bandwidth to support it. If you are able, please consider maintaining this instrumentation in your own repository and listing it in the the OpenTelemetry Registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants