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
Document use of NewSchemaless vs NewWithAttributes #4847
Comments
@pellared shall I take this? |
This is currently assigned to me, but feel free to take it. |
RIght now I can only figure out that users can use 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? |
The main use case of using |
@pellared I have prepared this thing for now :
so this pr should be for -Otel-go Docs Right? Where do I add this? |
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. |
I agree especially that https://pkg.go.dev/go.opentelemetry.io/otel/sdk/resource#example-New even shows how one can handle the conflict |
This issue is an extraction of the discussion in #4846.
We should provide a documentation of the usage of
resource.NewSchemaless
vsresource.NewWithAttributes
, the pros and cons of both approaches and ways to use both efficiently.The text was updated successfully, but these errors were encountered: