An open API service indexing awesome lists of open source software.

https://github.com/sourcegraph/sourcegraph-datadog-service-map


https://github.com/sourcegraph/sourcegraph-datadog-service-map

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# Datadog Service Map Sourcegraph extension

## Overview

![Datadog Services Map Screenshot](https://storage.googleapis.com/sourcegraph-assets/extensions/datadog-services-map-sourcegraph-img.png)

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](https://docs.sourcegraph.com/integration/browser_extension)).

* See which services call or are called by other services
* Go directly to the [Datadog APM Service Map](https://docs.datadoghq.com/tracing/visualization/services_map/) for your service

## Setup

### 1. Add configuration keys to the preferred Sourcegraph settings level

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`.

```json
"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`

### 2. Visit a code file with a service tracer call

Visit any code file with a service call and hover over the call, like:
```JS
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.

## Support

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.