You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +02:00
chore: enable unused-receiver rule from revive (#7130)
#### Description Enable and fixes [unused-receiver](https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unused-receiver) rule from revive Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -34,9 +34,9 @@ type Annotator struct {
|
||||
}
|
||||
|
||||
func (a Annotator) OnStart(_ context.Context, s ReadWriteSpan) { s.SetAttributes(a.AttrsFunc()...) }
|
||||
func (a Annotator) Shutdown(context.Context) error { return nil }
|
||||
func (a Annotator) ForceFlush(context.Context) error { return nil }
|
||||
func (a Annotator) OnEnd(s ReadOnlySpan) {
|
||||
func (Annotator) Shutdown(context.Context) error { return nil }
|
||||
func (Annotator) ForceFlush(context.Context) error { return nil }
|
||||
func (Annotator) OnEnd(s ReadOnlySpan) {
|
||||
attr := s.Attributes()[0]
|
||||
fmt.Printf("%s: %s\n", attr.Key, attr.Value.AsString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user