The Datadog Service Map Sourcegraph Extension brings the context of Datadog APM directly into your code, both on Sourcegraph and on your code host (via the Sourcegraph Browser Extension).
To enable this extension for everyone on your Sourcegraph instance, add these to your global settings /site-admin/global-settings
.
To enable it for just users in your organization, add this to your organization settings /organizations/orgName/settings
.
To enable it just for yourself, add these to your user settings /user/username/settings
.
"datadogServiceMap.apiKey": "DD_API_KEY",
"datadogServiceMap.applicationKey": "DD_APPLICATION_KEY",
"datadogServiceMap.env": "DD_SERVICE_MAP_ENVIRONMENT",
"datadogServiceMap.corsAnywhereUrl": "CORS_ANYWHERE_URL",
If you don't have a CORS anywhere URL, you can use the Sourcegraph demo:
https://sourcegraph-demo-cors-anywhere.herokuapp.com
Visit any code file with a service call and hover over the call, like:
app.get("/", (req, res) => {
tracer.trace("ping", () => {
res.send("ping");
});
});
Hovering over tracer.trace("ping", ...
will display your tooltip with all called and calling services, as well as a link to go directly to the Datadog services map.
If you're a an individual Sourcegraph user, email support@sourcegraph.com
If you're a Sourcegraph customer, use your existing support slack channel or email contact.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。