* Added example for logging exporter
* Used global otel for tracing
* Revert "Used global otel for tracing"
This reverts commit 8f267731ef.
* Register the trace provider as global
* update the zipkin example to more closely match our recommended approaches.
* split out the SDK config/management into its own class
* update for 0.14.1
* formatting
* get the examples up to date for 0.14.1
* update the grpc example to remove global usage
* update the http example to remove global usage
* update the jaeger example to get rid of the global usage
* update the metrics example to get rid of the global OpenTelemetry usage
* update the otlp exporter example to get rid of the global OpenTelemetry usage
* update the sdk-usage example to get rid of the global OpenTelemetry usage
* update the zipkin example to get rid of the global OpenTelemetry usage
* run the formatter
* update method names and details based on feedback
* Upgrade to Gradle 6.7 and use toolchains feature to build on 11 and test on 11/8.
* Debug (probably first JDK download taking some time)
* Remove now unnecessary java toolchain workarounds
* Remove debug
* Remove windows build for now
* bin
* Raise no_output_timeout since this change seems to eliminate cache and build doesn't finish.
* Add .gitattributes.
This fixes spotlessCheck when checking out on windows with git core.eol=crlf and core.autocrlf=true.
Note that for git itself, the eol=lf next to the text=auto changes nothing, but spotless tries
enforce the core.eol line endings anyway.
* Adjust .gitattributes towards instrumentation's
* Remove getCurrentContext and withSpan from Tracer
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Remove old java7 example
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Use spotless for formatting / license check
* Apply formatting
* README
* Apply to example
* google-java-format 1.8 for now
* google-java-format 1.7 for now (last supporting Java 8)
* Create a simple otlp example, with a docker-compose collector setup.
* Add metrics into the example
* formatting
* remove the go metrics load generator
* remove unneeded pieces of the docker config; switch to using the BSP in the example code.
* Update examples/otlp/docker/otel-collector-config-demo.yaml
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* added prometheus exporter example
* tidying up
* Update examples/prometheus/README.md
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
* Update examples/prometheus/README.md
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
* added port arg check as per code review suggestion
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
* Call initTracer just once at beginning of main.
This fixes a bug where each time a new HttpClient is instantiated, it adds a new SpanExporter to the
global OpenTelemetry SDK instance.
* s/InitTracer/InitTracerSdk/
* Add example module for Zipkin
* Updated to include Zipkin example module
* Changed to use shutdown() on TracerSdkProvider
* Changed zipkin example module to use shutdown() on TracerSdkProvider