You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit def014f
Browse filesBrowse the repository at this point in the historyBrowse files
privatefunstrongestRequirement(levels:List<String>): String= levels.minBy { REQUIREMENT_STRENGTH.indexOf(it).let { i ->if (i <0) Int.MAX_VALUEelse i } }
208
233
209
234
/**
210
-
* Rejects OpenTelemetry names that collide with any Datadog name. Within each direction,
211
-
* a rename must also belong to a single tag. Direction-free renames reserve their name
212
-
* in every direction. Scoped renames may share a name across directions: `server.address`
213
-
* maps to `http.hostname` inbound and `peer.hostname` outbound.
235
+
* Within each direction, a rename must belong to a single tag. A direction-free rename can't
236
+
* be a Datadog name too, since without a direction its name would resolve to two tags. A scoped
237
+
* rename may share a name across directions -- `server.address` is `http.hostname` inbound and
238
+
* `peer.hostname` outbound -- and may be another tag's Datadog name (see [claimSharedNames]).
fun`a Datadog name declared per direction is one tag`() {
345
424
val yaml = directory.conventionsFile(
@@ -434,6 +513,8 @@ class TagRegistryGeneratorTest {
434
513
@TableTest(
435
514
"""
436
515
scenario | domain | message
516
+
scoped rename to own name | span_types: {a: {span-kind: client, tags: [{dd-name: x, otel-name: x}]}} | collides with canonical
517
+
shared name renamed itself | span_types: {a: {span-kind: server, tags: [{dd-name: x, otel-name: o}]}, b: {span-kind: client, tags: [{dd-name: y, otel-name: x}]}} | so it cannot be renamed itself
437
518
same name in one direction | span_types: {a: {span-kind: server, tags: [{dd-name: x, otel-name: o}]}, b: {span-kind: consumer, tags: [{dd-name: y, otel-name: o}]}} | claimed by both 'x' and 'y' on inbound spans
438
519
neutral contradicts scoped | span_types: {a: {span-kind: server, tags: [{dd-name: x, otel-name: o, span-kind-neutral: true}]}, b: {span-kind: client, tags: [{dd-name: y, otel-name: o}]}} | on outbound spans
0 commit comments