Title: OpenTracing.Integration isn't compatible with OpenTracing interface · Issue #2251 · getsentry/sentry-javascript · GitHub
Open Graph Title: OpenTracing.Integration isn't compatible with OpenTracing interface · Issue #2251 · getsentry/sentry-javascript
X Title: OpenTracing.Integration isn't compatible with OpenTracing interface · Issue #2251 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ https://www.npmjs.com/package/@sentry/opentracing https://docs.sentry.io/enriching-error-data/tracing/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues #2...
Open Graph Description: Review the documentation: https://docs.sentry.io/ https://www.npmjs.com/package/@sentry/opentracing https://docs.sentry.io/enriching-error-data/tracing/ Search for existing issues: https://github.c...
X Description: Review the documentation: https://docs.sentry.io/ https://www.npmjs.com/package/@sentry/opentracing https://docs.sentry.io/enriching-error-data/tracing/ Search for existing issues: https://github.c...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/2251
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenTracing.Integration isn't compatible with OpenTracing interface","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\nhttps://www.npmjs.com/package/@sentry/opentracing\r\nhttps://docs.sentry.io/enriching-error-data/tracing/\r\n\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\nhttps://github.com/getsentry/sentry-javascript/pull/2161\r\nhttps://github.com/getsentry/sentry-javascript/pull/2038\r\nhttps://github.com/getsentry/sentry-javascript/pull/1918\r\n\r\n- [-] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\nNo, but latest NPM versions.\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [x] `@sentry/node` 5.6.2\r\n- [x] `@sentry/opentracing` 5.1.2\r\n- [x] `@sentry/integrations` 5.6.1\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n0.0.0\r\n```\r\n\r\n## Description\r\n\r\nSubclass of `Tracer` in `@sentry/opentracing` introduce some fields which leads to incompatibility:\r\n\r\n```ts\r\nimport * as OpenTracing from '@sentry/opentracing'\r\nimport { Tracer } from 'opentracing'\r\nconst tracer: Tracer = new Tracer() // no op\r\nconst ot = new OpenTracing.Integration(undefined, tracer) // \u003c-- compile error\r\n```\r\n\r\n```json\r\n{\r\n\t\"resource\": \"/home/vagrant/workspace/poc-backend/packages/common.errors/src/index.ts\",\r\n\t\"owner\": \"typescript\",\r\n\t\"code\": \"2345\",\r\n\t\"severity\": 8,\r\n\t\"message\": \"Argument of type 'import(\\\"/home/vagrant/workspace/poc-backend/node_modules/opentracing/lib/tracer\\\").Tracer' is not assignable to parameter of type 'import(\\\"/home/vagrant/workspace/poc-backend/node_modules/@sentry/opentracing/dist/tracer\\\").Tracer'.\\n Type 'Tracer' is missing the following properties from type 'Tracer': _spans, setTraceId, flush\",\r\n\t\"source\": \"ts\",\r\n\t\"startLineNumber\": 17,\r\n\t\"startColumn\": 51,\r\n\t\"endLineNumber\": 17,\r\n\t\"endColumn\": 57\r\n}\r\n```\r\n\r\nI didn't find a way to use [integrations](https://github.com/getsentry/sentry-javascript/blob/master/packages/integrations/src/tracing.ts) with OpenTracing either.\r\nHow to integrate it with OpenTracing clients like [zipkin-javascript-opentracing](https://github.com/DanielMSchmidt/zipkin-javascript-opentracing)? Just add `traceId` to `extra`?\r\n\r\nI've seen that there is more work in https://github.com/getsentry/sentry-javascript/pull/2161. That's the goal of sentry project here? TBH, I would like to see Errors, Traces and [Logs](https://sentry.io/vs/logging/) in one place and not distributed in Sentry, Jaeger, ELK/EFK and others.","author":{"url":"https://github.com/Bessonov","@type":"Person","name":"Bessonov"},"datePublished":"2019-09-26T10:20:50Z","url":"https://github.com/getsentry/sentry-javascript/issues/2251"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:93afcfc7-c187-e6e2-e6df-3a65d5d75e77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A12C:1B10FF:B9CDA0:F3FB6B:6B04DC40 |
| html-safe-nonce | 14d8a90cb11cf450261a343e40504ecabbc0b029462fb1519af4d4f489dad845 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTJDOjFCMTBGRjpCOUNEQTA6RjNGQjZCOjZCMDREQzQwIiwidmlzaXRvcl9pZCI6IjM2NDc0NTIxNjEzMjUxOTQzMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7a2ff001a876012dcdbf089575f7b52dda7a45695f2e321d97dea63143e33c55 |
| hovercard-subject-tag | issue:498795890 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/2251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e02ccfbc8ae896a393a7a70f930946613c97a108baac3b22e95c22f708ad3774/getsentry/sentry-javascript/issues/2251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e02ccfbc8ae896a393a7a70f930946613c97a108baac3b22e95c22f708ad3774/getsentry/sentry-javascript/issues/2251 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ https://www.npmjs.com/package/@sentry/opentracing https://docs.sentry.io/enriching-error-data/tracing/ Search for existing issues: https://github.c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bessonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width