Comments (2)
Here are my thoughts...
-
You could definitely add this as-is over in https://github.com/open-telemetry/opentelemetry-dotnet-contrib. If you want to just do that and stop reading, fine by me.
-
I think this is useful enough it could be part of the main SDK. I don't speak for all approvers/maintainers, but I would be supportive of something like...
public static ResourceBuilder AddServiceVersionDetector( this ResourceBuilder resourceBuilder, Assembly targetAssembly, ServiceResourceVersionDetectionType detectionType) { // ... } public enum ServiceResourceVersionDetectionType { AssemblyVersion, AssemblyFileVersion, AssemblyInformationVersion }
I added the ability to look at
AssemblyFileVersionAttribute
&AssemblyInformationalVersionAttribute
as well via the enum. For a project like OTel,AssemblyVersion
is always1.0.0.0
andAssemblyFileVersion
\AssemblyInformationalVersion
are the more useful things. This actually follows the guidance, but I know a lot of users don't. Basically I think we should be able to look different spots and perhaps add more in the future?
from opentelemetry-dotnet.
@CodeBlanch, I would vote for your extended proposal, but in the contrib repository. I do not think that it is defined in spec/semantic convention to put it as a part of SDK.
If we speaking about detection, from particular assemblies, we are doing something similar for scope version. Keep in mind that part of the versioning system extends versions by suffixes (eg. GH commits). Ref: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/9114d0b183def59bc0cd747bdee024aae7d35fbc/src/Shared/AssemblyVersionExtensions.cs
from opentelemetry-dotnet.
Related Issues (20)
- [BaggagePropagator] handle baggage properties
- OpenTelemetryLoggerOptions.IncludeScopes does not add scopes to logs HOT 6
- Tutorial of `getting-started-aspnetcore` is not working as it refers un-released API HOT 2
- Baggage propagation - known issues
- [Question] Trace attribute http.route vs url.path HOT 4
- HttpProtobuf doesn't work on dotNet Android project
- Support .NET 9 ActivitySource Tags HOT 2
- LogLevel configuration (appSettings.json) for OpenTelemetry provider not working on Functions app using HostBuilder without defaults HOT 14
- Create a destination file with name derived from OTel log attribute HOT 3
- ArraySegment ArgumentException in PrometheusCollectionManager on results write HOT 1
- Metrics page may appear blank after a few seconds. HOT 6
- Many logs from OtlpMetricExporter HOT 2
- Consider flattening object-valued tags
- Exception Logging HOT 2
- Is it possible to dinamically inject resourceLogs's resource attributes? HOT 2
- LogRecord doesn't support `any` type for body
- [Exporter.Prometheus] Possibility to disable otel_scope attributes HOT 1
- Allow Ability to disable log argument attributes but still include scope attributes HOT 1
- Metrics stop exporting at seemingly random times every week or so
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-dotnet.