Skip to content

Commit 89145a8

Browse files
committed
RequestTags interface -> RequestTagsProvider interface
1 parent 717fd59 commit 89145a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/core/core.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ func ExtractTraceparent(ctx context.Context) propagation.MapCarrier {
8888
return carrier
8989
}
9090

91-
type RequestTags interface {
91+
type RequestTagsProvider interface {
9292
Route() string
9393
Action() string
9494
Framework() string
9595
}
9696

97-
func ContextInject(ctx context.Context, h RequestTags) context.Context {
97+
func ContextInject(ctx context.Context, h RequestTagsProvider) context.Context {
9898
ctx = context.WithValue(ctx, Route, h.Route())
9999
ctx = context.WithValue(ctx, Action, h.Action())
100100
ctx = context.WithValue(ctx, Framework, h.Framework())

0 commit comments

Comments
 (0)