Skip to content

Conversation

@adibrastegarnia
Copy link

No description provided.

@adibrastegarnia adibrastegarnia requested a review from kuujo May 17, 2022 15:37
//
// SPDX-License-Identifier: Apache-2.0

package otelemetry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should name this package otel for consistency with the core OpenTelemetry package names.

type InstrumentationOption func(*InstrumentationOptions)

// NewInstrumentation creates a configuration for an instrumentation using a set of given options
func NewInstrumentation(opts []InstrumentationOption) *InstrumentationOptions {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use the variadic opts ...InstrumentationOption parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants