Consider supporting OpenTelemetry · Issue #9 · cloudflare/foundations · GitHub
Skip to content

Consider supporting OpenTelemetry #9

Open

Description

@ibotty

We are already running OpenTelemetry so it would be great to allow easy intergration into apps using foundations.

Activity

  1. inikulin commented on Feb 1, 2024

    @inikulin
    Collaborator

    Could you elaborate a bit more about what kind of integration you expect?

  2. Noah-Kennedy commented on Feb 1, 2024

    @Noah-Kennedy
    Collaborator

    @ibotty which apis are you interested in here?

    Generic OTEL support for tracing and logging is likely to be fairly simple, metrics would be more complicated though.

  3. ibotty commented on Feb 3, 2024

    @ibotty
    Author

    Sorry for not answering earlier. I was busy.

    For some rust projects we are using tracing, tracing-opentelemetry and opentelemetry-otlp to export traces. We don't yet use metrics via OpenTelemetry.

    ATM setting that up is quiet a handful of boilerplate in Rust. It seems to be kind-of in scope for foundations to make that easier.

  4. Noah-Kennedy commented on Feb 5, 2024

    @Noah-Kennedy
    Collaborator

    Foundations doesn't use tracing, and instead has it's own competing system, but does handle all the stuff you are talking about here already, albeit the exporting is slightly hardcoded around jaeger OTEL, but that can easily be changed.

  5. ibotty commented on Feb 10, 2024

    @ibotty
    Author

    Sorry for the incomplete post.

    Is there some documentation on why foundations is not using tokio's tracing? I would have hoped, that the enhancements in the blog post could be made in upstream tracing as well. It's a little unfortunate to not have the native tracing of tokio's crates.

  6. inikulin commented on Feb 12, 2024

    @inikulin
    Collaborator

    There is certain functionality in foundations that can't be implemented with tracing's design. Also, there are certain unresolved bugs in tracing that prevented it's adoption for certain scenarios that we have.

    However, there's a plan to release an adapter crate that will allow funnelling of tracing-produced output to Foundations. cc @evanrittenhouse

  7. evanrittenhouse commented on Feb 26, 2024

    @evanrittenhouse
    Contributor

    Hopefully I can start work on the adapter crate in the next couple of days. I'm thinking we can start with an OTEL appender as shown in https://github.com/open-telemetry/opentelemetry-rust

  8. inikulin commented on Mar 15, 2024

    @inikulin
    Collaborator

    v4 will have native support for OTLP gRPC exporters for traces and logs.
    Please, let me us know if you also need any of those:

    • OTLP HTTP endpoints support
    • Collectors requiring mTLS
    • OTLP support for metrics
  9. nifty-bytes commented on Mar 15, 2024

    @nifty-bytes

    + for

    • OTLP HTTP endpoints support
    • OTLP support for metrics
  10. inikulin commented on May 9, 2024

    @inikulin
    Collaborator

    #34 adds support for OTLP tracing reporting. External reviews are vey much appreciated

  11. davidbarsky commented on May 22, 2024

    @davidbarsky

    There is certain functionality in foundations that can't be implemented with tracing's design. Also, there are certain unresolved bugs in tracing that prevented it's adoption for certain scenarios that we have.

    Hi! I'm a tracing maintainer. Can you share these limitations/bugs are? I'm not aware of what you're missing, but I'd like to be able to close those gaps.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions