{"action":"closed","issue":{"url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/686","repository_url":"https://api.github.com/repos/DataDog/dd-trace-py","labels_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/686/comments","events_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/686/events","html_url":"https://github.com/DataDog/dd-trace-py/issues/686","id":376557647,"node_id":"MDU6SXNzdWUzNzY1NTc2NDc=","number":686,"title":"How to log within a span of a trace?","user":{"login":"wenbochang","id":4371899,"node_id":"MDQ6VXNlcjQzNzE4OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/4371899?v=4","gravatar_id":"","url":"https://api.github.com/users/wenbochang","html_url":"https://github.com/wenbochang","followers_url":"https://api.github.com/users/wenbochang/followers","following_url":"https://api.github.com/users/wenbochang/following{/other_user}","gists_url":"https://api.github.com/users/wenbochang/gists{/gist_id}","starred_url":"https://api.github.com/users/wenbochang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenbochang/subscriptions","organizations_url":"https://api.github.com/users/wenbochang/orgs","repos_url":"https://api.github.com/users/wenbochang/repos","events_url":"https://api.github.com/users/wenbochang/events{/privacy}","received_events_url":"https://api.github.com/users/wenbochang/received_events","type":"User","site_admin":false},"labels":[{"id":936691982,"node_id":"MDU6TGFiZWw5MzY2OTE5ODI=","url":"https://api.github.com/repos/DataDog/dd-trace-py/labels/opentracer","name":"opentracer","color":"70b7d5","default":false},{"id":395724895,"node_id":"MDU6TGFiZWwzOTU3MjQ4OTU=","url":"https://api.github.com/repos/DataDog/dd-trace-py/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-01T20:28:24Z","updated_at":"2018-11-05T15:02:45Z","closed_at":"2018-11-05T15:02:45Z","author_association":"NONE","body":"Sorry if I'm doing something silly, but I can't seem to get the log to show up in a span:\r\n\r\n```\r\nwith tracing.start_span('db-span', context=context) as span:\r\n    span.set_tag('tag_key', 'tag_value')\r\n    span.set_tag('event', 'server event')\r\n    span.log_kv({'message': 'hello from client'})\r\n ```\r\n\r\nI can see the tags (also isn't event suppose to log according to [opentracing spec](https://github.com/opentracing/specification/blob/1be630515dafd4d2a468d083300900f89f28e24d/semantic_conventions.md#log-fields-table)? ):\r\n\r\n<img width=\"335\" alt=\"screen shot 2018-11-01 at 1 24 26 pm\" src=\"https://user-images.githubusercontent.com/4371899/47877586-7f688c80-ddd9-11e8-9679-6667536e614b.png\">\r\n\r\nBut no logs\r\n\r\n<img width=\"664\" alt=\"screen shot 2018-11-01 at 1 25 04 pm\" src=\"https://user-images.githubusercontent.com/4371899/47877626-914a2f80-ddd9-11e8-8cd3-ddd5239c176d.png\">\r\n\r\nMaybe my docker-compose is missing additional settings? I did include `dd_logs_enabled`:\r\n\r\n```\r\n    image: datadog/agent:6.5.2\r\n    environment:\r\n      DD_API_KEY: ${DD_API_KEY}\r\n      DD_APM_ENABLED: \"true\"\r\n      DD_LOGS_ENABLED: \"true\"\r\n      DD_TAGS: \"env:platform\"\r\n      NON_LOCAL_TRAFFIC: \"true\"\r\n```"}}
{"actor":{"display_login":"brettlangdon"}}