-
Notifications
You must be signed in to change notification settings - Fork 247
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
Span Processors are basically undocumented #397
Comments
I'm planning to help provide some documentation on this topic. |
FWIW, I still feel that notable amounts of documentation are missing here. #461 only made changes in the comments of two of the four span processors. Additionally, two are located in https://github.com/open-telemetry/opentelemetry-ruby/tree/master/sdk/lib/opentelemetry/sdk/trace while the other two are located in https://github.com/open-telemetry/opentelemetry-ruby/tree/master/sdk/lib/opentelemetry/sdk/trace/export yet neither the trace nor the export folder contain a readme or other centralized documentation on the processors. While the additions are helpful and welcome, they do not provide what I think is needed for the average user of this project, myself included. I feel like there needs to be a readme somewhere, even if all it does is reference something over in the spec repo. |
Is this still an active issue? We don't have a pattern of READMEs in # Adds a new SpanProcessor to this {Tracer}.
#
# @param span_processor the new SpanProcessor to be added.
def add_span_processor(span_processor)
@mutex.synchronize do
if span_processor.is_a?(SimpleSpanProcessor) && !ENV["OTEL_RUBY_SILENCE_SPAN_PROCESSOR_WARNING"].nil?
OpenTelemetry.logger.warn('you are using SimpleSpanProcessor are you sure about that, pal?')
end
if @stopped
OpenTelemetry.logger.warn('calling Tracer#add_span_processor after shutdown.')
return
end
@span_processors = @span_processors.dup.push(span_processor)
end
end |
@plantfansam Yes, I do think this is still relevant actually. Outside of the default, happy-path case, it's hard to get started in my opinion. Of course, many language SIGs have issues with documentation, but I think we could keep this open as a docs TODO. |
👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the |
I have learned via chat that the SimpleSpanProcessor is not intended for anything other than local testing yet its all that is used in the examples. By trial and error I learned that the expected default is the BatchSpanProcessor. Having said that, I am not aware of any documentation of this or of when or how to use any of the span processors.
For me, this became a real issue today: the SimpleSpanProcessor paired with the Jaeger::CollectorExporter broke a service for us - it made an endpoint response time go from sub-1s to 20s. The batch processor fixed our issue. I also think there were additional issues that are harder to quantify too, fwiw.
The text was updated successfully, but these errors were encountered: