-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TD-686: Adopts opentelemetry API (#28)
* Instruments swagger operation handler * Bumps deps; updates proto refs * Tweaks woody timeout testcase * Bumps OTP version * Bumps bouncer & token keeper clients
- Loading branch information
1 parent
5aee0f7
commit 12f5e53
Showing
16 changed files
with
178 additions
and
68 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
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
-ifndef(shortener_bouncer_data_included__). | ||
-define(shortener_bouncer_data_included__, ok). | ||
|
||
-include_lib("bouncer_proto/include/bouncer_decisions_thrift.hrl"). | ||
-include_lib("bouncer_proto/include/bouncer_context_v1_thrift.hrl"). | ||
-include_lib("bouncer_proto/include/bouncer_decision_thrift.hrl"). | ||
-include_lib("bouncer_proto/include/bouncer_ctx_thrift.hrl"). | ||
-include_lib("bouncer_proto/include/bouncer_ctx_v1_thrift.hrl"). | ||
|
||
-define(TEST_USER_REALM, <<"external">>). | ||
-define(TEST_RULESET_ID, <<"service/authz/api">>). | ||
|
||
-define(JUDGEMENT(Resolution), #bdcs_Judgement{resolution = Resolution}). | ||
-define(ALLOWED, {allowed, #bdcs_ResolutionAllowed{}}). | ||
-define(FORBIDDEN, {forbidden, #bdcs_ResolutionForbidden{}}). | ||
-define(JUDGEMENT(Resolution), #decision_Judgement{resolution = Resolution}). | ||
-define(ALLOWED, {allowed, #decision_ResolutionAllowed{}}). | ||
-define(FORBIDDEN, {forbidden, #decision_ResolutionForbidden{}}). | ||
|
||
-endif. |
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
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,27 @@ | ||
services: | ||
testrunner: | ||
depends_on: | ||
jaeger: | ||
condition: service_healthy | ||
environment: | ||
- OTEL_SERVICE_NAME=shortener | ||
- OTEL_TRACES_EXPORTER=otlp | ||
- OTEL_TRACES_SAMPLER=parentbased_always_on | ||
- OTEL_EXPORTER_OTLP_PROTOCOL=http_protobuf | ||
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318 | ||
|
||
jaeger: | ||
image: jaegertracing/all-in-one:1.47 | ||
environment: | ||
- COLLECTOR_OTLP_ENABLED=true | ||
healthcheck: | ||
test: "/go/bin/all-in-one-linux status" | ||
interval: 2s | ||
timeout: 1s | ||
retries: 20 | ||
ports: | ||
- 4317:4317 # OTLP gRPC receiver | ||
- 4318:4318 # OTLP http receiver | ||
- 5778:5778 | ||
- 14250:14250 | ||
- 16686:16686 |
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
Oops, something went wrong.