{"action":"created","issue":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/377","repository_url":"https://api.github.com/repos/census-instrumentation/opencensus-python","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/377/comments","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/377/events","html_url":"https://github.com/census-instrumentation/opencensus-python/issues/377","id":376116387,"node_id":"MDU6SXNzdWUzNzYxMTYzODc=","number":377,"title":"trace/exporter/jaeger_agent: Could not serialize attribute http.url to tag","user":{"login":"flands","id":645366,"node_id":"MDQ6VXNlcjY0NTM2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/645366?v=4","gravatar_id":"","url":"https://api.github.com/users/flands","html_url":"https://github.com/flands","followers_url":"https://api.github.com/users/flands/followers","following_url":"https://api.github.com/users/flands/following{/other_user}","gists_url":"https://api.github.com/users/flands/gists{/gist_id}","starred_url":"https://api.github.com/users/flands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flands/subscriptions","organizations_url":"https://api.github.com/users/flands/orgs","repos_url":"https://api.github.com/users/flands/repos","events_url":"https://api.github.com/users/flands/events{/privacy}","received_events_url":"https://api.github.com/users/flands/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-31T19:02:42Z","updated_at":"2018-11-01T21:41:12Z","closed_at":null,"author_association":"NONE","body":"I have a simple python app running flask. Configured it per documentation to export to Jaeger. Always get the following error:\r\n\r\n```\r\n2018-10-31 11:51:19,540 WARNING Could not serialize attribute             http.url:http://0.0.0.0:5001/ to tag\r\n2018-10-31 11:51:19,549 ERROR\r\n```\r\n\r\nSwitch Jaeger exporter out with Zipkin or Print and the error does not appear. Tried with both GoogleCloudFormatPropagator and TraceContextPropagator with same result.\r\n\r\nQuick example of code to repro the issue:\r\n\r\n```\r\nfrom opencensus.trace.ext.flask.flask_middleware import FlaskMiddleware\r\n\r\nfrom opencensus.trace import config_integration\r\nfrom opencensus.trace.propagation.trace_context_http_header_format import TraceContextPropagator\r\n\r\nfrom opencensus.trace.exporters import jaeger_exporter\r\nfrom opencensus.trace.exporters import zipkin_exporter\r\nfrom opencensus.trace.exporters.transports.background_thread import BackgroundThreadTransport\r\n\r\napp = Flask(__name__)\r\n\r\nconfig_integration.trace_integrations(['httplib'])\r\nexporter_jaeger = jaeger_exporter.JaegerExporter(service_name=\"demo\", host_name=\"localhost\", port=14268, transport=BackgroundThreadTransport)\r\nexporter_zipkin = zipkin_exporter.ZipkinExporter(service_name=\"demo\", transport=BackgroundThreadTransport)\r\n\r\nmiddleware = FlaskMiddleware(app, exporter=exporter_jaeger) # error\r\n#middleware = FlaskMiddleware(app, exporter=exporter_zipkin) # works\r\n#middleware = FlaskMiddleware(app, propagator=TraceContextPropagator(), exporter=exporter_jaeger) # error\r\n#middleware = FlaskMiddleware(app, propagator=TraceContextPropagator(), exporter=exporter_zipkin) # works\r\n```"},"comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/comments/435197007","html_url":"https://github.com/census-instrumentation/opencensus-python/issues/377#issuecomment-435197007","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/377","id":435197007,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTE5NzAwNw==","user":{"login":"flands","id":645366,"node_id":"MDQ6VXNlcjY0NTM2Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/645366?v=4","gravatar_id":"","url":"https://api.github.com/users/flands","html_url":"https://github.com/flands","followers_url":"https://api.github.com/users/flands/followers","following_url":"https://api.github.com/users/flands/following{/other_user}","gists_url":"https://api.github.com/users/flands/gists{/gist_id}","starred_url":"https://api.github.com/users/flands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flands/subscriptions","organizations_url":"https://api.github.com/users/flands/orgs","repos_url":"https://api.github.com/users/flands/repos","events_url":"https://api.github.com/users/flands/events{/privacy}","received_events_url":"https://api.github.com/users/flands/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T21:41:12Z","updated_at":"2018-11-01T21:41:12Z","author_association":"NONE","body":"Appears I missed the warning when using Zipkin. Solution is to cast the http.url as a str — will post a PR shortly.\r\n\r\n`2018-10-31 12:17:29,057 WARNING Could not serialize tag http.url`"}}
{"actor":{"display_login":"flands"}}