Comments (7)
I'm taking a new look at this, and now that we return the merged, schemaless resource on a merge conflict (#4876), I'm not sure adding a more explicit documentation is required.
from opentelemetry-go.
@pellared shall I take this?
from opentelemetry-go.
This is currently assigned to me, but feel free to take it.
from opentelemetry-go.
RIght now I can only figure out that users can use resource.NewSchemaless
instead of resource.NewWIthAttributes
if they want to lower the chances of facing resource merge conflicts
while implementing Otel go into their go application using
https://opentelemetry.io/docs/languages/go/getting-started/#initialize-the-opentelemetry-sdk
so right now I have only one reason yo use NewSchemaless. where can I find more info regarding both in order to create clear pros and cons of using them in doc file?
from opentelemetry-go.
The main use case of using resource.NewSchemaless
is when the attributes do not even follow the semantic conventions (when one adds custom attributes).
from opentelemetry-go.
@pellared I have prepared this thing for now :
Pros:
Lower Chances of Merge Conflicts:
Pro: Using newSchemaless may reduce the likelihood of facing resource merge conflicts,
especially when dealing with a large codebase or when different contributors are adding custom attributes.
Custom Attributes without Semantic Conventions:
Pro: Ideal for scenarios where custom attributes are added without adhering strictly to semantic conventions.
Cons:
Less Semantic Structure:
1. Con: "Schemaless" nature hampers adherence to predefined structures, making code maintenance challenging.
2. Con: Lack of a well-defined schema results in inconsistency in attribute usage across the codebase.
so this pr should be for -Otel-go Docs Right?
Where do I add this?
from opentelemetry-go.
I agree especially that https://pkg.go.dev/go.opentelemetry.io/otel/sdk/resource#example-New even shows how one can handle the conflict
from opentelemetry-go.
Related Issues (20)
- Post Go 1.21 support tasks
- log: Logger should be indentified also by SchemeURL HOT 2
- Audit the addition of the synchronous gauge HOT 11
- dice: Add OTLP exporters in addition to STDOUT exporters HOT 2
- go: go.opentelemetry.io/otel/[email protected]: reading go.opentelemetry.io/otel/semconv/go.mod at revision semconv/v1.26.0: unknown revision semconv/v1.26.0 HOT 8
- Upgrade all use of go.opentelemetry.io/otel/semconv to use v1.25.0
- Document instrument name requirements in metric API
- Declare the priority of options and environments on exporters
- Creating repeated Float64ObservableGauge with the same name, but different callbacks the results in only one callback being used
- Flaky test `TestBatchProcessor/DroppedLogs` HOT 2
- The global instance holder should only be set once HOT 9
- resource detect function is not parallel and that can cause issues in custom detectors
- global tracers and meters should be identified also by SchemeURL
- Add otlplogfile exporter
- Tracing overhead and memory usage
- Consider using go module paths for scope name in demos HOT 3
- metric: Add example and documentation for synchronous gauge HOT 2
- metric.WithExplicitBucketBoundaries is not working as expected HOT 4
- Interesting bug potential with `pcommon.Map` HOT 3
- Make it easier to add a resource resource.Detector to the SDKs HOT 3
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-go.