ac128e2f40
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
26 lines
430 B
Go
26 lines
430 B
Go
package observability
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/github/github-mcp-server/pkg/observability/log"
|
|
)
|
|
|
|
type Exporters interface {
|
|
Logger(context.Context) log.Logger
|
|
}
|
|
|
|
type ObservabilityExporters struct {
|
|
logger log.Logger
|
|
}
|
|
|
|
func NewExporters(logger log.Logger) Exporters {
|
|
return &ObservabilityExporters{
|
|
logger: logger,
|
|
}
|
|
}
|
|
|
|
func (e *ObservabilityExporters) Logger(_ context.Context) log.Logger {
|
|
return e.logger
|
|
}
|