DataDog / dd-opentelemetry-exporter-js

## Auto-archived due to inactivity. ## OpenTelemetry JS Datadog Exporter
Apache License 2.0
13 stars 10 forks source link

Different operation/resource algorithm #12

Open pauldraper opened 3 years ago

pauldraper commented 3 years ago

Most of the JS instrumentations have a span name structure that is operation resource.

I have been using a string split to create the Datadog operation and resource, and I find the result quite pleasing.

// derive operation and resource
let [operation, resource] = span.name.split(' ', 2);
resource = resource || span.name;

Would you considering doing this instead of the current approach, or in addition to it?