Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.
This repository was archived by the owner on May 23, 2023. It is now read-only.

SetTag should follow the same convention as LogFields #186

@MatthewDolan

Description

@MatthewDolan

Problem

I noticed that the log.Field object borrows from the convention set up by the zap logging library (https://github.com/uber-go/zap) to reduce allocations on logging by having typed functions (e.g. log.String(...) or log.Bool(...)). The SetTag(...) function does not follow that convention though.

Proposal

I would propose that SetTag takes a similar opentracing.Tag object that also reduces allocations.

For example:

span.SetTag(tag.String("hello", "world"))

Questions to address (if any)

There might need to be some path for rollout and backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions