Anuraag Agrawal
12a8936cb5
Disable Metrics SDK by default in autoconfigure. ( #3555 )
...
Also return the no-op API when there's no exporter.
2021-08-27 07:55:34 -07:00
Anuraag Agrawal
076b6b1622
Move channel shutdown logic to util and use in grpc metrics exporter too. ( #3553 )
2021-08-27 13:32:28 +09:00
Anuraag Agrawal
189c46a9da
Add a manually run stress test from SDK through OTLP via BSP. ( #3556 )
2021-08-26 08:41:10 -07:00
Anuraag Agrawal
8dba471294
Wire metric marshaler into HTTP exporter. ( #3547 )
...
* Wire metric marshaler into HTTP exporter.
* Cleanup
2021-08-26 14:12:07 +09:00
Anuraag Agrawal
89fc562e1b
Wire metric marshaler into gRPC exporter. ( #3546 )
...
* Wire metric marshaler into gRPC exporter.
* Cleanup
2021-08-26 13:45:41 +09:00
Anuraag Agrawal
396ef26d9b
Wait for termination for gRPC shutdown. ( #3548 )
...
* Wait for termination for gRPC shutdown.
* demon
2021-08-26 13:25:18 +09:00
Anuraag Agrawal
7bf177d274
Reuse a threadlocal CodedOutputStream for marshaling. ( #3545 )
2021-08-26 12:41:55 +09:00
John Watson
193bd4b267
Update to Semantic Conventions v1.6.1 ( #3552 )
...
And, remove the generator template hacks for 1.6.0
2021-08-25 18:31:34 -07:00
Josh Suereth
b19157ed98
Allow multiple views per instrument ( #3541 )
...
* Allow synchronous instruments to have multiple views per-instrument.
- Split writeable api from readable api for storage
- Create multi-writeable APIs for when multiple views are defined per instrument.
- Add test to ensure multiple metrics can be exported
- Fix minor issues in registry + sdk meter provider limiting multi-view registration.
* Allow multiple metrics to be registered per async instrument
* Don't fail on metric-identifier overlap, just log.
Does not update tests.
* Fix SdkMeter tests to use logs instead of exceptions
* Fix code reivew comment.
* Fix spotless issue.
2021-08-25 13:44:06 -07:00
dependabot[bot]
2921f04a36
Bump codecov/codecov-action from 2.0.2 to 2.0.3 ( #3544 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2.0.2...v2.0.3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-25 08:05:07 -07:00
Anuraag Agrawal
30994c1e28
Add Marshaler for metrics ( #3540 )
...
* Move TraceMarshaler to otlp-common and use in otlp-http-trace
* Remove protobuf-java
* Add MetricMasrhaler
* Fix
* Add MetricRequestMarshaler
* Add Benchmark
* spot
2021-08-25 14:23:16 +09:00
jack-berg
4a945e63e3
Add gradle ktlint spotless config to all projects ( #3543 )
2021-08-25 08:36:17 +09:00
Anuraag Agrawal
20fe1a0ab3
Move TraceMarshaler to otlp-common and use in otlp-http-trace ( #3533 )
...
* Move TraceMarshaler to otlp-common and use in otlp-http-trace
* Remove protobuf-java
* Boilerplate
2021-08-24 13:25:02 +09:00
jack-berg
ea4b6b4026
Refactor package to io.opentelemetry.exporter.otlp.http.metrics for c… ( #3538 )
...
* Refactor package to io.opentelemetry.exporter.otlp.http.metrics for consistency
* Fix package reference in MetricExporterConfiguration
2021-08-23 17:48:13 -07:00
Anuraag Agrawal
4dc139883d
Revert "Populate labels in addition to attributes for now on metrics. ( #3397 )" ( #3537 )
...
This reverts commit 5e6be2bb52 .
2021-08-24 09:03:56 +09:00
jack-berg
a0b0ab4e2c
Support comma separated list for exporters for otel.traces.exporter. ( #3529 )
...
* Support comma separated list for exporters for otel.traces.exporter.
* Respond to PR feedback.
2021-08-23 14:34:24 -07:00
John Watson
bb46b0c0a4
Update the semantic conventions to 1.6.0 ( #3524 )
2021-08-23 09:43:18 -07:00
jack-berg
16cfb66fc4
Add support for configuring OTLP protocol to autoconfigure module. ( #3522 )
2021-08-23 09:40:46 -07:00
Anuraag Agrawal
86e7d127e2
Vendor in required bits of CodedOutputStream and remove protobuf-java… ( #3519 )
...
* Vendor in required bits of CodedOutputStream and remove protobuf-java dependency
* License headers
* Backfill
* Buffer size
2021-08-23 12:16:50 +09:00
dependabot[bot]
4b2756542b
Bump docker/build-push-action from 2.6.1 to 2.7.0 ( #3532 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v2.6.1...v2.7.0 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 12:06:19 +09:00
jack-berg
3555965a34
Extract common OTLP config logic to utility function ( #3525 )
2021-08-20 12:32:11 -07:00
jack-berg
068bffba9e
Add missing API diff. ( #3526 )
2021-08-20 12:29:03 -07:00
jack-berg
c0ca032f16
Remove outdated docs in otlp package-info.java files ( #3523 )
...
* Remove outdated docs in otlp package-info.java files
* Fix formatting
2021-08-20 10:29:07 -07:00
Anuraag Agrawal
0da5038637
Make proto dependency in otlp-common compileOnly. ( #3520 )
2021-08-20 07:44:02 -07:00
Anuraag Agrawal
9b506e6b2a
Add a custom proto compiler handler that generates classes with only … ( #3504 )
...
* Add a custom proto compiler handler that generates classes with only proto field numbers / enum values.
* Fix README
* Spotless
2021-08-20 08:49:35 +09:00
Josh Suereth
cc547d2a1d
Update View-wiring to match SDK specificaiton ( #3510 )
...
* Modify view lookup order to match SDK specification
* Correctly register views using metric/description name relabelling
* Wire view's metric descriptor into aggregators, allowing metric names to change.
* Add test for view renames.
* Fix jmh and javadoc issues.
2021-08-19 10:51:53 -07:00
Anuraag Agrawal
0ecf0f8cef
Add assertions for HTTP/2 behavior of OkHttp ( #3513 )
2021-08-19 10:11:54 -07:00
Anuraag Agrawal
16031e5912
Apply optimizations to TraceMarshaler that were already made to SpanAdapter ( #3512 )
2021-08-19 08:21:59 -07:00
Anuraag Agrawal
7f474cba71
Serialize proto directly into okhttp buffer. ( #3511 )
2021-08-19 08:13:54 -07:00
Will Sargent
4806e64018
Tweaks to README ( #3414 )
...
* Tweaks to README
* Fix context line
* Fix context line redux
* Fix typo
* Fix indent
2021-08-19 08:04:46 -07:00
Anuraag Agrawal
69b6b338e2
Remove comment that isn't valid ( #3514 )
2021-08-19 08:03:32 -07:00
Josh Suereth
e3bbca0b06
Renaame instruments *Sdk. -> Sdk* ( #3508 )
2021-08-18 20:02:42 -07:00
Anuraag Agrawal
17f2ba3c1f
Compute buffer size for grpc marshaler ( #3507 )
2021-08-19 11:04:37 +09:00
Anuraag Agrawal
d014c4cdc0
Plugin the custom marshaler to otlp:trace span exporter. ( #3503 )
...
* Plugin the custom marshaler to otlp:trace span exporter.
* Drift
* Update exporters/otlp/trace/src/main/java/io/opentelemetry/exporter/otlp/trace/MarshalerInputStream.java
Co-authored-by: John Watson <jkwatson@gmail.com>
Co-authored-by: John Watson <jkwatson@gmail.com>
2021-08-19 08:27:02 +09:00
John Watson
4b4f0167ed
Optimize 1 & 2 element attributes creation ( #3502 )
...
* optimize the single-attribute creation flow to avoid unneeded allocations
* Optimize the implementations of 1 and 2 element Attributes instances.
* Refactor to *actually* save allocations and fix a couple of bugs.
2021-08-18 16:14:32 -07:00
Josh Suereth
0e38773e45
View API additons ( #3491 )
...
* First set of chaanges for new view SDK
- Update default aggregaators
- Expand instrument selector for views
* Fix tests for histogram as default aggregation.
* Remove unimplemented view methods for now.
* Javadoc cleanups.
* Apply suggestions from code review
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
* Migrate to predicates for strings, and List instead of Linked maps.
* fix missing bucket count test for histogram stress.
* Add some tests and a few fixes.
* Fixes from review.
* More fixes from review.
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-08-17 08:26:39 -07:00
Patrice Chalin
5d4e74984e
Website: support GH page links to canonical src ( #3501 )
2021-08-17 07:51:46 -07:00
Anuraag Agrawal
e868c82ff1
Use higher timeout for signal-specific timeout tests. ( #3448 )
2021-08-17 15:12:35 +09:00
jack-berg
58c16a9133
Add missing readmes and missing javadoc links ( #3500 )
2021-08-16 12:36:54 -07:00
jack-berg
dd84ccaec7
Fix javadoc ( #3499 )
...
* Add javadoc links for otlp-http modules
* Fix otlp module javadoc links
* Fix logging exporter javadoc link
* Fix jaeger exporters javadoc links
* Fix prometheus exporter javadoc link
* Fix zipkin exporter javadoc link
* Fix extension annotations javadoc link
* Fix extension trace propagators javadoc links
* Fix sdk-extensions aws javadoc link
* Fix sdk-extensions async-processor javadoc links
2021-08-16 10:35:42 -07:00
Anuraag Agrawal
b264039161
Test TraceMarshaler with random SpanData. ( #3493 )
...
* Test TraceMarshaler with random SpanData.
* Generate invalid SpanContext
* Cleanup
2021-08-16 08:59:39 -07:00
Anuraag Agrawal
e0854d6ac1
Fix some nullness in exporters ( #3492 )
2021-08-16 08:56:58 -07:00
Anuraag Agrawal
7a89a19700
Make proto dependency on gRPC compileOnly. ( #3490 )
...
* Make proto dependency on gRPC compileOnly.
* Manually parse Status
2021-08-15 09:48:42 +09:00
Anuraag Agrawal
42da2da1cc
Fix some nullability in SDK. ( #3474 )
...
* Fix some nullabiity in SDK.
* Cleanup
* Update sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracer.java
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
2021-08-15 09:47:39 +09:00
Anuraag Agrawal
ed680eb8e7
Use IdentityHashMap for grouping. ( #3477 )
...
* Use IdentityHashMap for grouping.
* TraceMarshaler
* Smaller map
2021-08-14 16:34:16 +09:00
Anuraag Agrawal
1a881a6946
Fix nullness in Resource (low priority). ( #3472 )
2021-08-14 14:12:02 +09:00
Anuraag Agrawal
efe6886d77
Clarify japicmp shouldn't be attempted until some time has passed after release workflow. ( #3480 )
2021-08-14 11:22:44 +09:00
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
addb473840
Update the website docs for the 1.5.0 release. ( #3488 )
2021-08-14 10:37:01 +09:00
Trask Stalnaker
651df06cc9
Add getAttribute to ReadableSpan ( #3458 )
...
* Add getAttribute to ReadableSpan
* javadoc
2021-08-14 10:33:33 +09:00