Skip to content

Commit

Permalink
3.x: Archetype - fix SE zipkin configuration (#8141)
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin authored Dec 13, 2023
1 parent c3ef7a5 commit b31a1cb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 40 deletions.
43 changes: 21 additions & 22 deletions archetypes/helidon/src/main/archetype/se/custom/observability.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,30 @@
<list key="application-yaml-entries">
<value if="${tracing.provider} == 'jaeger'"><![CDATA[
tracing:
service: "helidon-full-http"
host: "localhost" # JAEGER_ENDPOINT
port: 14250 # JAEGER_ENDPOINT
sampler-type: "ratio" # JAEGER_SAMPLER_TYPE (https://www.jaegertracing.io/docs/latest/sampling/#client-sampling-configuration)
sampler-param: 0.5 # JAEGER_SAMPLER_PARAM (number)
service: "helidon-full-http"
host: "localhost" # JAEGER_ENDPOINT
port: 14250 # JAEGER_ENDPOINT
sampler-type: "ratio" # JAEGER_SAMPLER_TYPE (https://www.jaegertracing.io/docs/latest/sampling/#client-sampling-configuration)
sampler-param: 0.5 # JAEGER_SAMPLER_PARAM (number)
]]></value>
<value if="${tracing.provider} == 'zipkin'"><![CDATA[
tracing:
zipkin:
service: "helidon-service"
protocol: "https"
host: "192.168.1.1"
port: 9987
api-version: 1
# this is the default path for API version 2
path: "/api/v2/spans"
tags:
tag1: "tag1-value"
tag2: "tag2-value"
boolean-tags:
tag3: true
tag4: false
int-tags:
tag5: 145
tag6: 741]]></value>
service: "helidon-service"
protocol: "http"
host: "localhost"
port: 9411
api-version: 1
# this is the default path for API version 2
path: "/api/v2/spans"
tags:
tag1: "tag1-value"
tag2: "tag2-value"
boolean-tags:
tag3: true
tag4: false
int-tags:
tag5: 145
tag6: 741]]></value>
</list>
<list key="config-test">
<value><![CDATA[
Expand Down
35 changes: 17 additions & 18 deletions docs/includes/tracing/tracer-zipkin.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2019, 2022 Oracle and/or its affiliates.
Copyright (c) 2019, 2023 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,23 +47,22 @@ The following is an example of a Zipkin configuration, specified in the YAML for
[source,yaml]
----
tracing:
zipkin:
service: "helidon-service"
protocol: "https"
host: "zipkin"
port: 9987
api-version: 1
# this is the default path for API version 2
path: "/api/v2/spans"
tags:
tag1: "tag1-value"
tag2: "tag2-value"
boolean-tags:
tag3: true
tag4: false
int-tags:
tag5: 145
tag6: 741
service: "helidon-service"
protocol: "https"
host: "zipkin"
port: 9987
api-version: 1
# this is the default path for API version 2
path: "/api/v2/spans"
tags:
tag1: "tag1-value"
tag2: "tag2-value"
boolean-tags:
tag3: true
tag4: false
int-tags:
tag5: 145
tag6: 741
----
Example of Zipkin trace:
Expand Down

0 comments on commit b31a1cb

Please sign in to comment.