Skip to content

Commit

Permalink
feat: Add otel attributes
Browse files Browse the repository at this point in the history
resolves #20
  • Loading branch information
AbhiPrasad committed Nov 29, 2024
1 parent c04c751 commit 024957f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions model/trace/otel/otel__scope__name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "otel.scope.name",
"brief": "The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "io.opentelemetry.contrib.mongodb"
}
10 changes: 10 additions & 0 deletions model/trace/otel/otel__scope__version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "otel.scope.version",
"brief": "The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "2.4.5"
}
10 changes: 10 additions & 0 deletions model/trace/otel/otel__status_code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "otel.status_code",
"brief": "Name of the code, either “OK” or “ERROR”. MUST NOT be set if the status code is UNSET.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "OK"
}
10 changes: 10 additions & 0 deletions model/trace/otel/otel__status_description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"key": "otel.status_description",
"brief": "Description of the Status if it has a value, otherwise not set.",
"type": "string",
"pii": {
"key": "false"
},
"is_in_otel": true,
"example": "resource not found"
}

0 comments on commit 024957f

Please sign in to comment.