Skip to content

ddtrace/tracer: diagnostic and startup logs should be in JSON format. #2152

Description

@mariel-sendblocks
According to the docs, the tracer diagnostic/startup logs arent printed in json format. The actual diagnostic/config are in json format, but they are printed as part of non-json log msg :
2020/07/09 15:57:07 Datadog Tracer v1.26.0 INFO: DATADOG TRACER CONFIGURATION {"date":"2020-07-09T15:57:07-05:00","os_name":"darwin","os_version":"10.15.4","version":"v1.26.0","lang":"Go","lang_version":"go1.14.2","env":"","service":"splittest2","agent_url":"http://127.0.0.1:8126/v0.4/traces","agent_error":"","debug":true,"analytics_enabled":false,"sample_rate":"NaN","sampling_rules":null,"sampling_rules_error":"","tags":{"runtime-id":"d269781c-b1bf-4d7b-9a55-a8174930554f"},"runtime_metrics_enabled":false,"health_metrics_enabled":false,"dd_version":"","architecture":"amd64","global_service":""}

Version of dd-trace-go

latest

Describe what happened:

general issue

Describe what you expected: The whole log should be printed in json format

Steps to reproduce the issue:

Additional environment details (Version of Go, Operating System, etc.):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions