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

ext: Add LogFields helpers for keys from specification #226

Merged

Commits on Dec 5, 2019

  1. Add log/fields helpers for keys from specification

    Opentracing spec specify prefered names for log messages [1]
    This patch adds declaration for fields which are meaningful for golang
    
    - log: add helpers function for spec keys
    - ext: add LogError() helper for error
    
    LogError() helper can not be declarated in log package because it depends
    opentrace.Span which result in cyclic depencency
    
    Footnotes:
    [1] https://github.com/opentracing/specification/blob/master/semantic_conventions.md#log-fields-table
    Dmitry Monakhov committed Dec 5, 2019
    Copy the full SHA
    63fe2a1 View commit details
    Browse the repository at this point in the history