-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding instrumentation configuration (#91)
* adding instrumentation configuration * organise general instrumentation config by semconv * update peer service mapping example * Apply suggestions from code review Co-authored-by: jack-berg <[email protected]> * adding comments, sections for all languages * expand logback example config, comments * Add all surface area, docs to kitchen-sink.yaml, use consistent case for property keys, remove db semconv options. * Fix typo --------- Co-authored-by: jack-berg <[email protected]> Co-authored-by: Jack Berg <[email protected]>
- Loading branch information
1 parent
9c6803a
commit 6709017
Showing
4 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"$id": "https://opentelemetry.io/otelconfig/instrumentation.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "Instrumentation", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"general": { | ||
"$ref": "#/$defs/GeneralInstrumentation" | ||
}, | ||
"cpp": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"dotnet": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"erlang": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"go": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"java": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"js": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"php": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"python": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"ruby": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"rust": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
}, | ||
"swift": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
} | ||
}, | ||
"patternProperties": { | ||
".*": { | ||
"$ref": "#/$defs/LanguageSpecificInstrumentation" | ||
} | ||
}, | ||
"$defs": { | ||
"GeneralInstrumentation": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"peer": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"service_mapping": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"peer": { | ||
"type": "string" | ||
}, | ||
"service": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"peer", | ||
"service" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"http": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"client": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"request_captured_headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"response_captured_headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"server": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"request_captured_headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"response_captured_headers": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"LanguageSpecificInstrumentation": { | ||
"type": "object", | ||
"additionalProperties": true, | ||
"patternProperties": { | ||
".*": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters