File tree 2 files changed +5
-5
lines changed
telemetry/instrumentation/otelslog
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ const (
30
30
traceFlagsKey = "trace_flags"
31
31
)
32
32
33
- type traceConfig struct {
33
+ type TraceConfig struct {
34
34
recordStackTraceInSpan bool
35
35
errorSpanLevel slog.Level
36
36
}
37
37
38
38
type TraceHandler struct {
39
39
slog.Handler
40
- tcfg * traceConfig
40
+ tcfg * TraceConfig
41
41
}
42
42
43
- func NewTraceHandler (w io.Writer , opts * slog.HandlerOptions , traceConfig * traceConfig ) * TraceHandler {
43
+ func NewTraceHandler (w io.Writer , opts * slog.HandlerOptions , traceConfig * TraceConfig ) * TraceHandler {
44
44
if opts == nil {
45
45
opts = & slog.HandlerOptions {}
46
46
}
Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ func (fn option) apply(cfg *config) {
33
33
34
34
type config struct {
35
35
logger * cwslog.Logger
36
- traceConfig * traceConfig
36
+ traceConfig * TraceConfig
37
37
options []cwslog.Option
38
38
}
39
39
40
40
// defaultConfig default config
41
41
func defaultConfig () * config {
42
42
return & config {
43
- traceConfig : & traceConfig {
43
+ traceConfig : & TraceConfig {
44
44
recordStackTraceInSpan : true ,
45
45
errorSpanLevel : slog .LevelError ,
46
46
},
You can’t perform that action at this time.
0 commit comments