weixin_39766910 2020-11-29 23:57
浏览 0

Simplify the tags API

  • Remove the builder, use mutators when constructing a TagSet.
  • Rename KeyString to StringKey to prefer the natural language order.
  • Stop exporting the the key IDs that are internal implementation details.
  • Rename ValueAsString to StringValue which is a more common naming pattern in Go.
  • Rename Tag.K to Tag.Key, Tag.Value to Tag.Value.

该提问来源于开源项目:census-instrumentation/opencensus-go

  • 写回答

5条回答 默认 最新

  • weixin_39766910 2020-11-29 23:57
    关注

    , you can review the new API by reading example_test.go.

    评论

报告相同问题?