opentelemetry-go-contrib icon indicating copy to clipboard operation
opentelemetry-go-contrib copied to clipboard

config: Create SDK from model

Open pellared opened this issue 2 years ago • 2 comments

Add a function which creates SDK from model.

E.g.

package config

// NewSDK creates SDK providers based on the configuration model.
func NewSDK(ctx, context.Context, c *OpenTelemetryConfiguration) (*SDK, error) {}

type SDK struct {}
func (sdk *SDK) Shutdown() error {}
func (sdk *SDK) TraceProvider() *trace.TraceProvider {}
func (sdk *SDK) MeterProvider() *meter.MeterProvider {}

pellared avatar Oct 02 '23 07:10 pellared

PTAL @codeboten

pellared avatar Oct 10 '23 18:10 pellared

@pellared already started on this, please assign it to me when you have a moment

codeboten avatar Oct 10 '23 21:10 codeboten