Update process.pid
resource attribute for forked processes (eg. Passenger)
#1409
Unanswered
ykitamura-mdsol
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It is not straightforward, though - I wonder if maybe this should be updated whenever the SDK detects a fork... maybe @open-telemetry/ruby-approvers and @open-telemetry/ruby-maintainers have ideas? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to figure out how to update the
process.pid
resource attribute for forked processes:opentelemetry-ruby/sdk/lib/opentelemetry/sdk/resources/resource.rb
Line 58 in ad7c3b9
and it seems I need to update
@resource
of tracer provider in all instrumentations.so I end up patching this method to OpenTelemetry::Instrumentation::Registry but this method is touching instance variables, it doesn't look so nice:
Please advise me if there is a way to update the
process.pid
resource attribute properly.Thank you
Beta Was this translation helpful? Give feedback.
All reactions