-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Instrumentation scope is not set for stanza based receivers #37348
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@djaglowski Would it make sense to extend the InputConfig in stanza to include an instrumentation scope? Since If this is a valid approach, I can look into providing a PR for this |
I don't necessarily agree that the receiver should be represented as the instrumentation scope, just as the collector is not the resource which generated the log. The instrumentation scope is intended to describe the portion of code which emitted the log, which is in some other service. This is why we have a scope parser, so users can assign the instrumentation scope based on the content of the log. (e.g. a logger name) |
Thank you for the response @djaglowski! should we in this case close this issue, as the scope parser is the recommended way of providing the instrumentation scope? |
I would say that not the raw log but the processed (attributes, parsed timestamp), summarized, or transformed (pLog) version of it (telemetry).
Do you mean the entity that generated the raw log (e.g. nginx app)? IMO the raw log is different from the one processed and emitted by the receiver (e.g. data model). To describe the resource (logger name) that generated the log, I would opt for using resource attributes. |
Component(s)
receiver/filelog, receiver/journald, receiver/syslog, receiver/otlpjsonfile
What happened?
Description
Instrumentation Scope OpenTelemetry log record field is not set for receivers that are created using Stanza's internal package. This field is very useful when configuring routing pipelines based on the receiver name/type.
Steps to Reproduce (Linux)
(write some logs, e.g:
echo "hii" >> /tmp/hello.log
)Expected Result
Actual Result
Collector version
v0.117.0, 1b93d01
Environment information
Environment
OS: Arch
Compiler: go1.23.4
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: