Giter Site home page Giter Site logo

Comments (7)

Oberon00 avatar Oberon00 commented on August 24, 2024

Isn't an unsampled but exported span an oxymoron? How could this happen in practice?

from opentelemetry-proto.

kbrockhoff avatar kbrockhoff commented on August 24, 2024

There is work going on to do tail-based sampling in the collector. For this to work, all spans need to be exported to the collector.

from opentelemetry-proto.

bogdandrutu avatar bogdandrutu commented on August 24, 2024

I am +1 on this

from opentelemetry-proto.

anuraaga avatar anuraaga commented on August 24, 2024

@kbrockhoff Do you mind describing more concretely the use case you have in mind? I think with pure tail sampling, we would expect the SDK to do 100% sampling and that wouldn't need to be exported. Is the goal to support multiple sampling decisions, e.g., not sampled for trace, but sampled for logs or for secondary sampling of a subset of the trace? I guess instead of a sampling flag, we'd want a list of SamplingDecision, each can be namespaced to a backend or system by a user.

Also I think this would need to be propagated too for certain types of secondary sampling?

from opentelemetry-proto.

kbrockhoff avatar kbrockhoff commented on August 24, 2024

There are several use cases for having a sampled flag.

  1. Using tail-based sampling where the team controlling the tail-based sampling and monitoring does not have control over upfront sampling configuration. This can occur in a supply chain with multiple organizations or even a siloed single organization. In this use case having a list of SamplingDecision as suggested by @anuraaga is an even better idea.

  2. Using protobuf as a general storage mechanism for tracing data. An example would be compact storage of a test data set.

In either case, adequate information can potentially be stored in the TraceState field but would then need to be parsed. I can be talked into either this approach or the SamplingDecision approach.

from opentelemetry-proto.

andrewhsu avatar andrewhsu commented on August 24, 2024

@arminru from the bulk move of P3 required-for-ga issues to after-ga earlier today during the issue triage mtg with TC, i noticed this issue was skipped. should the labels for tracking this issue be updated to something else?

from opentelemetry-proto.

arminru avatar arminru commented on August 24, 2024

This can be added after-ga, if still desired, yes.
@bogdandrutu you were +1 on ths, WDYT?

from opentelemetry-proto.

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.