-
Notifications
You must be signed in to change notification settings - Fork 455
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
Review and update OTel semantic conventions #10560
Comments
@RohitRanjanMS It would be awesome if the function host set the root span name to the Example: ![]() Would that make sense @lmolkova? |
yep, I think it's not the case because Tried to check what FaaS semconv recommend and I think they are not clear enough - open-telemetry/semantic-conventions#1858 |
The trigger route is available from the
Here's an example where the azure-functions-host/src/WebJobs.Script.WebHost/Extensions/FunctionMetadataExtensions.cs Line 227 in cfa63f6
I can try making a PR, I have no idea how easy or hard it is to run the host locally but let's see :) |
This is done. Will be available in host 1039 release. |
I see a few minor discrepancies:
faas.trigger
is set to some Azure Function constant likeeventHubTrigger
Based on semantic conventions, I believe it should be
pubsub
- https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/faas-spans.md and the fact that it's an Event Hub is captured in the correspondingmessaging.system
.faas.trigger
has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.datasource
http
other
pubsub
timer
Very minor:
ai.sdk.prefix = azurefunctions:4.1036.0.0
ordotnetiso:1.1.0.0
is populated on resources even when I don't use Application Insights SDK and use pure OTel like here https://github.com/lmolkova/testfuncotel. We probably should not set it if AppInsights is not enabled.faas.version = 4.1036.0.0
is set on host resources, but it should not be set for Azure functions according to semconvAzure Functions: Not applicable. Do not set this attribute.
Let's fix one side or the other.
faas.execution
is used instead offaas.invocation_id
. It was right according to OTel schema 1.17 which Functions support, but it was renamed later. Can we update the schema version for OTel case while it's all still experimental?service.version
on the host is reported as4.1036.0.0
which does not seem right - it seems to be internal Function host version, but I assume users would expect it to be something about their code (if we can infer it).It maybe just something to document - the 4.1036.0.0 is probably automatically picked up by otel-dotnet from the assembly version and is probably easily overridden with OTEL env var.
Happy to discuss further and help if you'd like to change anything in the otel semantic conventions.
The text was updated successfully, but these errors were encountered: