sdk/log: Document that users should not create instances of Record #5823
Labels
documentation
Provides helpful information
enhancement
New feature or request
pkg:SDK
Related to an SDK package
Milestone
Users are expected to emit logs using this API: https://pkg.go.dev/go.opentelemetry.io/otel/log (or a bridge using it).
The SDK is not designed to create https://pkg.go.dev/go.opentelemetry.io/otel/sdk/log#Record themselves. The record is created by the Logger returned by https://pkg.go.dev/go.opentelemetry.io/otel/sdk/log#LoggerProvider.Logger.
Originally posted by @pellared in #5782 (comment)
The text was updated successfully, but these errors were encountered: