Skip to content

Commit

Permalink
config for attributes (#62)
Browse files Browse the repository at this point in the history
* added config for attributes

* snyk-scan fix

* fix

* fixed indentation issues

* resolved comments

* Update config-bootstrapper/src/main/resources/configs/config-bootstrapper/attribute-service/hypertrace/hypertrace_span_attributes.conf

Co-authored-by: SJ <[email protected]>

* Update config-bootstrapper/src/main/resources/configs/config-bootstrapper/attribute-service/hypertrace/hypertrace_span_attributes.conf

Co-authored-by: SJ <[email protected]>

* Update config-bootstrapper/src/main/resources/configs/config-bootstrapper/attribute-service/hypertrace/hypertrace_span_attributes.conf

Co-authored-by: SJ <[email protected]>

* Update config-bootstrapper/src/main/resources/configs/config-bootstrapper/attribute-service/hypertrace/hypertrace_span_attributes.conf

Co-authored-by: SJ <[email protected]>

* Update config-bootstrapper/src/main/resources/configs/config-bootstrapper/attribute-service/hypertrace/hypertrace_span_attributes.conf

Co-authored-by: SJ <[email protected]>

* added internal = false for attributes wherever missing

Co-authored-by: Ankit Choudhary <[email protected]>
Co-authored-by: SJ <[email protected]>
Co-authored-by: Ankit Choudhary <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2021
1 parent 5270467 commit a69feca
Show file tree
Hide file tree
Showing 11 changed files with 446 additions and 143 deletions.
4 changes: 2 additions & 2 deletions config-bootstrapper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ dependencies {
implementation("commons-codec:commons-codec:1.15") {
because("https://snyk.io/vuln/SNYK-JAVA-COMMONSCODEC-561518")
}
runtimeOnly("io.netty:netty-codec-http2:4.1.61.Final") {
runtimeOnly("io.netty:netty-codec-http2:4.1.68.Final") {
}
runtimeOnly("io.netty:netty-handler-proxy:4.1.61.Final") {
runtimeOnly("io.netty:netty-handler-proxy:4.1.68.Final") {
because("https://snyk.io/vuln/SNYK-JAVA-IONETTY-1083991")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ commands = [
display_name: Span ID,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Service.name,
Expand All @@ -26,7 +27,8 @@ commands = [
display_name: Service Name,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.start_time_millis,
Expand All @@ -36,6 +38,7 @@ commands = [
scope: EVENT,
sources: [QS],
type: ATTRIBUTE,
internal: false,
definition: {
source_field: SOURCE_FIELD_START_TIME
}
Expand All @@ -48,6 +51,7 @@ commands = [
scope: EVENT,
sources: [QS],
type: ATTRIBUTE,
internal: false,
definition: {
source_field: SOURCE_FIELD_END_TIME
}
Expand All @@ -60,7 +64,8 @@ commands = [
display_name: Span Type,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.attributes.trace_id,
Expand All @@ -70,7 +75,8 @@ commands = [
display_name: Trace ID,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.metrics.duration_millis,
Expand All @@ -80,7 +86,8 @@ commands = [
unit: ms,
scope: EVENT,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: Span.attributes.parent_span_id,
Expand All @@ -90,7 +97,8 @@ commands = [
display_name: Parent Span ID,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.attributes.tags,
Expand All @@ -99,7 +107,8 @@ commands = [
display_name: Tags,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.attributes.status_code,
Expand All @@ -109,7 +118,8 @@ commands = [
display_name: Status Code,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.display_span_name,
Expand All @@ -119,7 +129,8 @@ commands = [
display_name: Span Name,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Span.space_ids,
Expand All @@ -128,7 +139,8 @@ commands = [
display_name: Space IDs,
scope: EVENT,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ commands = [
display_name: Trace ID,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.name,
Expand All @@ -26,7 +27,8 @@ commands = [
display_name: Transaction Name,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.start_time_millis,
Expand All @@ -35,7 +37,8 @@ commands = [
display_name: Start Time,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.end_time_millis,
Expand All @@ -44,7 +47,8 @@ commands = [
display_name: End Time,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.attributes.transaction_name,
Expand All @@ -54,7 +58,8 @@ commands = [
display_name: Transaction Name,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.attributes.services,
Expand All @@ -64,7 +69,8 @@ commands = [
display_name: Services,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Trace.metrics.duration_millis,
Expand All @@ -74,7 +80,8 @@ commands = [
unit: ms,
scope: TRACE,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: Trace.metrics.num_services,
Expand All @@ -84,7 +91,8 @@ commands = [
unit: Services
scope: TRACE,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: Trace.metrics.num_spans,
Expand All @@ -94,7 +102,8 @@ commands = [
unit: Spans,
scope: TRACE,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: Trace.space_ids,
Expand All @@ -103,7 +112,8 @@ commands = [
display_name: Space IDs,
scope: TRACE,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ commands = [
display_name: Endpoint ID,
scope: API,
type: ATTRIBUTE,
sources: [QS, EDS]
sources: [QS, EDS],
internal: false
},
{
fqn: API.name,
Expand All @@ -36,7 +37,8 @@ commands = [
display_name: Endpoint Name,
scope: API,
sources: [QS, EDS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.apiType,
Expand All @@ -46,7 +48,8 @@ commands = [
display_name: Endpoint Type,
scope: API,
type: ATTRIBUTE,
sources: [EDS]
sources: [EDS],
internal: false
},
{
fqn: API.apiDiscoveryState,
Expand All @@ -56,7 +59,8 @@ commands = [
display_name: Endpoint Discovery State,
scope: API,
type: ATTRIBUTE,
sources: [QS, EDS]
sources: [QS, EDS],
internal: false
},
{
fqn: API.is_external,
Expand All @@ -65,7 +69,8 @@ commands = [
display_name: Is Endpoint External,
scope: API,
sources: [QS, EDS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.start_time_millis,
Expand All @@ -74,7 +79,8 @@ commands = [
display_name: Start Time,
scope: API,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.end_time_millis,
Expand All @@ -83,7 +89,8 @@ commands = [
display_name: End Time,
scope: API,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Service.name,
Expand All @@ -93,7 +100,8 @@ commands = [
display_name: Service Name,
scope: API,
sources: [QS, EDS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: Service.id,
Expand All @@ -103,7 +111,8 @@ commands = [
display_name: Service ID,
scope: API,
sources: [QS, EDS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.attributes.namespace,
Expand All @@ -113,7 +122,8 @@ commands = [
display_name: Namespace,
scope: API,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.attributes.cluster,
Expand All @@ -123,7 +133,8 @@ commands = [
display_name: Cluster,
scope: API,
sources: [QS],
type: ATTRIBUTE
type: ATTRIBUTE,
internal: false
},
{
fqn: API.metrics.duration_millis,
Expand All @@ -134,7 +145,8 @@ commands = [
scope: API,
sources: [QS],
type: METRIC,
labels: []
labels: [],
internal: false
},
{
fqn: API.metrics.error_count,
Expand All @@ -143,7 +155,8 @@ commands = [
display_name: Error Count,
scope: API,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: API.metrics.exception_count,
Expand All @@ -152,7 +165,8 @@ commands = [
display_name: Exception Count,
scope: API,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: API.metrics.num_calls,
Expand All @@ -161,7 +175,8 @@ commands = [
display_name: Call Count,
scope: API,
sources: [QS],
type: METRIC
type: METRIC,
internal: false
},
{
fqn: API.http.method,
Expand All @@ -171,7 +186,8 @@ commands = [
groupable: false,
display_name: HTTP Method,
type: ATTRIBUTE,
sources: [EDS]
sources: [EDS],
internal: false
},
{
fqn: API.http.url,
Expand All @@ -181,7 +197,8 @@ commands = [
groupable: false,
display_name: URL,
type: ATTRIBUTE,
sources: [EDS]
sources: [EDS],
internal: false
},
]
}
Expand Down
Loading

0 comments on commit a69feca

Please sign in to comment.