Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Instrumentation for go-chi/chi #986

Closed
wants to merge 4 commits into from
Closed

Conversation

riandyrn
Copy link

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
Copy link

linux-foundation-easycla bot commented Aug 13, 2021

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
Author

Hello, @pellared & @Aneurysm9

Is there maybe something I should improve from this PR?

Thanks

@vinicius73
Copy link

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

@MrAlias
Copy link
Contributor

MrAlias commented Oct 12, 2021

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