{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-Python/issues/134","repository_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-Python","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-Python/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-Python/issues/134/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-Python/issues/134/events","html_url":"https://github.com/Microsoft/ApplicationInsights-Python/issues/134","id":370437471,"node_id":"MDU6SXNzdWUzNzA0Mzc0NzE=","number":134,"title":"Operation id in parallel threads?","user":{"login":"szklany","id":1759092,"node_id":"MDQ6VXNlcjE3NTkwOTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1759092?v=4","gravatar_id":"","url":"https://api.github.com/users/szklany","html_url":"https://github.com/szklany","followers_url":"https://api.github.com/users/szklany/followers","following_url":"https://api.github.com/users/szklany/following{/other_user}","gists_url":"https://api.github.com/users/szklany/gists{/gist_id}","starred_url":"https://api.github.com/users/szklany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szklany/subscriptions","organizations_url":"https://api.github.com/users/szklany/orgs","repos_url":"https://api.github.com/users/szklany/repos","events_url":"https://api.github.com/users/szklany/events{/privacy}","received_events_url":"https://api.github.com/users/szklany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-16T04:43:33Z","updated_at":"2018-10-16T04:43:33Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nin the introduction their is an explanation on how to use the operation id, but that is only for none parallel threads.\r\nIs there a way correlate operations when using threads?\r\n\r\n\"Since operation_id is being set as a property of telemetry client, the client shouldn't be reused in parallel threads as it might lead to concurrency issues.\"\r\n\r\ntc = TelemetryClient(instrumentation_key=instrumentation_key)\r\ntc.context.operation.id = <operation_id>"}}
{"actor":{"display_login":"szklany"}}