Repository navigation
feat(otlp): align resource and scope with OTel spec, record S3 region - #545
Open
arjun-rajappa wants to merge 2 commits into
Open
arjun-rajappa wants to merge 2 commits into
arjun-rajappa wants to merge 2 commits into
Conversation
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
The OTLP exporter's resource and instrumentation scope output differs from the OTel semconv v1.41.0 spec. The scope name is wrong,
host.idis missing on macOS, container IDs are missed on cgroup v2, Azure Functions are not detected, and S3 spans never carrycloud.regionbecause the instrumentation does not record it.What
base_converter.rb: scope name changed frominstana-rubytoinstana.ruby.tracerresource.rb:host.idis read fromioreg(IOPlatformUUID) on macOS. Linux behaviour is unchangeddocker-<id>.scope,cri-containerd-,crio-andlibpod-cgroup v1 paths. On cgroup v2 it falls back to/proc/self/mountinfo.FUNCTIONS_WORKER_RUNTIMEandWEBSITE_SITE_NAME, settingcloud.provider=azureandcloud.platform=azure_functions. It uses environment variables only, with no metadata-service call .aws_sdk_s3.rb: S3 spans now recordregionfromcontext.config.region. The existing converter already maps it to thecloud.regionspan attribute.resource_test.rb,base_converter_test.rbandaws_test.rb. Existing Linuxhost_idtests are pinned to Linux so they do not depend on the host OS.