{"action":"created","issue":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/409","repository_url":"https://api.github.com/repos/census-instrumentation/opencensus-python","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/409/comments","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/409/events","html_url":"https://github.com/census-instrumentation/opencensus-python/issues/409","id":384257088,"node_id":"MDU6SXNzdWUzODQyNTcwODg=","number":409,"title":"StackdriverExporter fails to emit span from GKE container","user":{"login":"Amey-D","id":10554902,"node_id":"MDQ6VXNlcjEwNTU0OTAy","avatar_url":"https://avatars1.githubusercontent.com/u/10554902?v=4","gravatar_id":"","url":"https://api.github.com/users/Amey-D","html_url":"https://github.com/Amey-D","followers_url":"https://api.github.com/users/Amey-D/followers","following_url":"https://api.github.com/users/Amey-D/following{/other_user}","gists_url":"https://api.github.com/users/Amey-D/gists{/gist_id}","starred_url":"https://api.github.com/users/Amey-D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amey-D/subscriptions","organizations_url":"https://api.github.com/users/Amey-D/orgs","repos_url":"https://api.github.com/users/Amey-D/repos","events_url":"https://api.github.com/users/Amey-D/events{/privacy}","received_events_url":"https://api.github.com/users/Amey-D/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"c24t","id":43799105,"node_id":"MDQ6VXNlcjQzNzk5MTA1","avatar_url":"https://avatars3.githubusercontent.com/u/43799105?v=4","gravatar_id":"","url":"https://api.github.com/users/c24t","html_url":"https://github.com/c24t","followers_url":"https://api.github.com/users/c24t/followers","following_url":"https://api.github.com/users/c24t/following{/other_user}","gists_url":"https://api.github.com/users/c24t/gists{/gist_id}","starred_url":"https://api.github.com/users/c24t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c24t/subscriptions","organizations_url":"https://api.github.com/users/c24t/orgs","repos_url":"https://api.github.com/users/c24t/repos","events_url":"https://api.github.com/users/c24t/events{/privacy}","received_events_url":"https://api.github.com/users/c24t/received_events","type":"User","site_admin":false},"assignees":[{"login":"c24t","id":43799105,"node_id":"MDQ6VXNlcjQzNzk5MTA1","avatar_url":"https://avatars3.githubusercontent.com/u/43799105?v=4","gravatar_id":"","url":"https://api.github.com/users/c24t","html_url":"https://github.com/c24t","followers_url":"https://api.github.com/users/c24t/followers","following_url":"https://api.github.com/users/c24t/following{/other_user}","gists_url":"https://api.github.com/users/c24t/gists{/gist_id}","starred_url":"https://api.github.com/users/c24t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c24t/subscriptions","organizations_url":"https://api.github.com/users/c24t/orgs","repos_url":"https://api.github.com/users/c24t/repos","events_url":"https://api.github.com/users/c24t/events{/privacy}","received_events_url":"https://api.github.com/users/c24t/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-11-26T10:08:31Z","updated_at":"2018-11-26T20:34:08Z","closed_at":"2018-11-26T20:34:08Z","author_association":"NONE","body":"When using `opencensus-python==0.1.8` in a Python Flask app running as a GKE container, I see the following stacktrace:\r\n\r\n```\r\n2018-11-26 09:04:22,779 ERROR background_thread.py:112: StackdriverExporter failed to emit spans.Dropping 1 spans from queue.\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/transports/background_thread.py\", line 106, in _thread_main\r\n    self.exporter.emit(span_datas)\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/stackdriver_exporter.py\", line 224, in emit\r\n    stackdriver_spans = self.translate_to_stackdriver(trace)\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/stackdriver_exporter.py\", line 248, in translate_to_stackdriver\r\n    set_attributes(trace)\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/stackdriver_exporter.py\", line 76, in set_attributes\r\n    set_monitored_resource_attributes(span)\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/stackdriver_exporter.py\", line 91, in set_monitored_resource_attributes\r\n    'project_id')\r\n  File \"/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/stackdriver_exporter.py\", line 136, in set_attribute_label\r\n    label_value_prefix + resource_labels[attribute_key]\r\nTypeError: must be str, not bytes\r\n```\r\n\r\nNote that the same application configuration setup used to work with `opencensus-python==0.1.4`.  I had to upgrade the package version in order to fix memory leaks in older versions (#334). So this clearly is a regression in recent versions of this package."},"comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/comments/441788114","html_url":"https://github.com/census-instrumentation/opencensus-python/issues/409#issuecomment-441788114","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/409","id":441788114,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc4ODExNA==","user":{"login":"c24t","id":43799105,"node_id":"MDQ6VXNlcjQzNzk5MTA1","avatar_url":"https://avatars3.githubusercontent.com/u/43799105?v=4","gravatar_id":"","url":"https://api.github.com/users/c24t","html_url":"https://github.com/c24t","followers_url":"https://api.github.com/users/c24t/followers","following_url":"https://api.github.com/users/c24t/following{/other_user}","gists_url":"https://api.github.com/users/c24t/gists{/gist_id}","starred_url":"https://api.github.com/users/c24t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c24t/subscriptions","organizations_url":"https://api.github.com/users/c24t/orgs","repos_url":"https://api.github.com/users/c24t/repos","events_url":"https://api.github.com/users/c24t/events{/privacy}","received_events_url":"https://api.github.com/users/c24t/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T20:34:08Z","updated_at":"2018-11-26T20:34:08Z","author_association":"CONTRIBUTOR","body":"Closing this as a duplicate of #381 since it's fixed on master, but we need to get this fix into a release soon."}}
{"actor":{"display_login":"c24t"}}