Commit Graph

22 Commits

Author SHA1 Message Date
John Watson 803de6b8b9
Example updates for 1.5.0 (#3487)
* update examples for 1.5.0 API changes

* fix to non-snapshot version
2021-08-14 10:37:19 +09:00
John Watson 8e51b03ed1
Update the example code for the 1.1.0 release (#3127)
also, exclude generated files from spotless
2021-04-07 19:57:44 -07:00
John Watson 04fbc2e6c5
update the example code for the 0.17.0 release. (#2886)
* update the example code for the 0.17.0 release.

* update the otlp example to get the resource properly populated

* clean up the build.gradle files
2021-02-18 15:01:44 -08:00
Bogdan Drutu 3f45fe0e95
Mark all public classes as final in the examples (#2846)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-17 12:27:17 -08:00
John Watson 964996f538
update the examples for 0.16.0 (#2780) 2021-02-09 12:09:00 -08:00
John Watson 68ee47108a
Example updates for 0.15.0 (#2611)
* WIP on updating examples for 0.15.0

* final updates to 0.15.0

* make the getter static
2021-02-01 09:24:02 -08:00
John Watson 9a0ff546a5
Update the zipkin example to better match best practices, and update all to work with 0.14.1 (#2484)
* 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
2021-01-13 20:16:44 -08:00
John Watson 2ac3ff6e83
Convert the examples to not use the GlobalOpenTelemetry instance. (#2364)
* 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
2020-12-18 16:21:51 -08:00
John Watson ba90083780
update the examples for 0.13.1 (#2360) 2020-12-18 10:03:27 -08:00
John Watson 596b4ba894
Update the examples for the 0.12.0 release. (#2198) 2020-12-04 12:28:35 -08:00
John Watson a5f7286e5c
Update the examples for v0.10.0 (#2030)
* Update the examples for v0.10.0

* make sure to install the propagator for the client/server examples

* rename method to be more consistent
2020-11-05 16:32:58 -08:00
Bogdan Drutu 698e9f4ad6
Use boms for grpc and opentelemetry in the examples (#1953)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-01 08:07:47 -08:00
Anuraag Agrawal fc14e3f0c2
Revert package rename in examples. (#1902) 2020-10-27 19:21:18 -07:00
Anuraag Agrawal 7ebbe7979d
Move API packages to .api. package (#1892)
* Move API packages to .api. package

* Cleanup
2020-10-28 08:39:41 +09:00
John Watson c01112b973
fix examples broken by an errant script (#1814) 2020-10-16 17:59:16 +02:00
Bogdan Drutu b73a063901
Remove getCurrentContext and withSpan from Tracer (#1809)
* 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>
2020-10-15 10:58:41 -07:00
John Watson 246b402769
update the examples for 0.9.1 (#1779)
* update the examples for 0.9.1

* update the examples for 0.9.1
2020-10-11 20:50:22 -07:00
John Watson 2074b4d3ce
Clean up examples for the latest attribute changes (#1362) 2020-06-19 21:39:31 +02:00
Bogdan Drutu 32810f04b9
Upgrade deps and fix examples (#1357)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-18 12:00:24 -07:00
John Watson f1f5975d5c
Introduce an ReadableAttributes interface, with 2 implementations (#1336)
* Introduce an Attributes interface and have ImmutableAttributes and the AttributesMap implement it.

* make the attribute limiting a little clearer.

* tiny javadoc fix

* Rework to restore the Attributes class, and introduce a ReadableAttributes interface

* polish the javadoc a bit

* fix some broken javadoc

* revert example change; revert test name change

* javadoc de-escalation

* fix bad merge
2020-06-17 09:29:52 -07:00
John Watson 194f6296a9
Example cleanup/update for latest APIs (#1337) 2020-06-17 16:49:05 +02:00
Uladzislau Kiva 9191175f32
feat: examples for metrics (#1284)
* feat: examples for metrics

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/ObserverMeterExample.java

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>

* feat: metrics examples adding bound() and applying review comments

* feat: example for directory search

* feat: apply review suggestions

* feat: apply review suggestions

* feat: move creation of counter out of try block

* feat: use double counter to count MB

* fix: javadoc

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* feat: apply review suggestions

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongValueObserverExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* feat: apply review suggestions

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/DoubleCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

* Update examples/metrics/src/main/java/io/opentelemetry/example/metrics/LongCounterExample.java

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>

Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
2020-06-11 08:17:49 -07:00