Bogdan Drutu
5d6fae1869
Add thread safe annotations for the public API. ( #501 )
2019-08-20 08:21:13 -07:00
Bogdan Drutu
c1a60bb1b9
Add the capability to record a batch of measurements. ( #500 )
...
* Add the capability to record a batch of measurements.
* Rename meter method name, add more tests.
* Add tests for not throwing exceptions.
2019-08-19 16:42:57 -07:00
Bogdan Drutu
2e0f703495
Remove SpanData per the RFC. ( #495 )
...
* Remove SpanData per the RFC.
* Fix review comments.
* Add more tests.
* Remove all references to SpanData.
2019-08-19 13:57:10 -07:00
Bogdan Drutu
5ac25d0a36
Fix the build after LabelKey was removed and Measure was added. ( #497 )
2019-08-15 16:07:10 -07:00
Bogdan Drutu
5f87aff868
Remove record from Meter and add Measure type with record. ( #488 )
...
* Remove record from Meter and add Measure type with record.
* Add more tests.
* Fix tests.
2019-08-15 15:03:07 -07:00
Bogdan Drutu
0a0032bd0e
Remove description from LabelKey and use directly String. ( #489 )
2019-08-15 09:35:52 -07:00
qudongfang
fc74e77ae6
Fix service provider not found exception message ( #491 )
...
* Fix service provider not found exception message.
Signed-off-by: qudongfang <qudongfang@gmail.com>
* Format with google java style.
Signed-off-by: qudongfang <qudongfang@gmail.com>
2019-08-14 19:29:26 -07:00
Bogdan Drutu
9ede324d9d
Remove unnecessary LabelValue object. ( #433 )
...
* Remove unnecessary LabelValue object.
* Remove the LabelValue class and all usages.
2019-08-13 16:21:28 -07:00
Yang Song
f42b6dc41b
Fix all typos ( #473 )
...
Changes are generated with
$ make misspell-correction
See https://github.com/client9/misspell
2019-08-05 18:35:06 +02:00
Chris Kleinknecht
0478651e34
Fix typo in isRecordingEvents ( #470 )
2019-07-24 09:55:12 +03:00
Yang Song
ada4edaa56
Change the order of measure type enum to match specs. ( #458 )
2019-07-03 11:41:03 -07:00
Yang Song
7471a94506
Change Sampler.shouldSample to accept list of Link. ( #455 )
...
* Change Sampler.shouldSample to accept list of SpanContext.
Fixes #437
* Improve test coverage.
* Change Sampler signature shouldSample to accept list of Links.
2019-07-01 16:44:55 -07:00
Yang Song
da7ad86bee
Move HTTP and binary trace context format to trace.propagation. ( #450 )
2019-06-28 10:23:01 -07:00
Yang Song
a9054017f0
Return DefaultSpan if not recording events. Implement TracerSdk.shutdown(). ( #447 )
...
* Return DefaultSpan if not recording events.
Fixes #438
* Implement TracerSdk.shutdown().
Fixes #444 .
* Fix review comments.
* Ignore recordEvent or sampler if already shut down.
* Remove isStopped. Fix synchronization.
* Improve test coverage.
2019-06-28 09:59:05 -07:00
Yang Song
5a1681855f
Rename TraceContextFormat to HttpTraceContext. ( #449 )
2019-06-28 09:29:54 -07:00
Yang Song
3b6d6c5b17
Implement binary format on SpanContext. ( #446 )
...
* Implement binary format on SpanContext.
Fixes #443 .
* Rename to BinaryTraceContext.
2019-06-28 09:17:33 -07:00
Armin Ruech
36f80e1fdc
Change DistributedContextSdk.Builder to use current dctx as implicit parent ( #439 )
...
* Change DistributedContextSdk.Builder to use current DistributedContext as implicit parent if none is provided explicitly
* Change DistributedContext.setNoParent to prevent inheriting an implicit context
* Clarify doc for DistributedContext.setNoParent
* Disallow null for DistributedContext.setParent
2019-06-27 14:20:54 -07:00
Yang Song
6378db90fe
Replace DistributedContext.getIterator with getEntries. ( #429 )
...
* Replace DistributedContext.getIterator with getEntries.
Fixes #401 .
* Clarify immutability in javadoc.
2019-06-27 10:38:29 -07:00
Pavol Loffay
bff193d462
Connect span builder and span in SDK ( #430 )
...
* Connect span builder and span in SDK
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Use proto in tests
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix review comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add sampling attributes to span
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove line
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-27 10:28:58 -07:00
Armin Ruech
ed42237b6c
Remove DistributedContext.Builder.buildScoped() ( #428 )
...
* Remove DistributedContext.Builder.buildScoped()
* Specify default parent for DistributedContext
2019-06-25 11:01:39 -07:00
Pavol Loffay
e715cd2d40
Remove public abstract from interface ( #435 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-25 10:27:34 -07:00
Yang Song
22fde62aba
Fix a potential ClassLoader deadlock and add missing Javadocs. ( #411 )
...
* Fix a potential ClassLoader deadlock and add missing Javadocs.
2019-06-22 16:18:04 +02:00
Yang Song
1511e1b482
Fix all errorprone warnings, ignore genproto files. ( #414 )
...
Fixes #375 .
Fixes #182 .
2019-06-19 18:09:43 -07:00
Armin Ruech
8520de5581
Tracer API: Fix doc regarding default propagation formats ( #405 )
2019-06-17 19:05:22 +02:00
Yang Song
69e2c48628
Fix an incorrect javadoc. ( #407 )
2019-06-14 18:15:08 -04:00
Carlos Alberto Cortez
7222d37ee1
Make SpanData take *base* Link objects. ( #403 )
...
We were taking SpanData.Link objects instead.
2019-06-12 22:38:44 +02:00
Carlos Alberto Cortez
50a2db42b2
Rename tags to dctx ( #381 )
...
* Rename tags to dctx (and related members).
* Implement the renamed dctx layer for the Sdk.
* Fix inline doc.
* Rename dctx to distributedcontext.
* Rename distributedcontext Attribute* to Entry*.
* Rename dctx to distributedcontext in the Sdk.
* Update the recently added SDK classes.
2019-06-10 11:24:54 -07:00
Yang Song
7684efbcb8
Use random IDs instead of invalid in default span. ( #382 )
...
* Use random IDs instead of invalid in default span.
* Add getInvalid API.
2019-06-10 08:58:24 -07:00
Bogdan Drutu
b0a49827aa
Remove fully qualified Samplers class in comments. ( #398 )
2019-06-07 14:51:05 -07:00
Pavol Loffay
cb0e85d433
Move samplers to util package ( #396 )
...
* Move samplers to util package
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Move tests
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-07 14:28:35 -07:00
Yang Song
bfe56101d1
More cleanup on static variables. ( #397 )
2019-06-07 13:22:29 -07:00
Carlos Alberto Cortez
c2c7ed4975
Make Link an interface. ( #395 )
...
* Make Link an interface.
* Rename LinkTest to SpanDataLinkTest.
2019-06-07 09:45:10 -07:00
Yang Song
fb0f5339cd
Make invalid SpanContext package-private. ( #394 )
2019-06-06 14:26:04 -07:00
Yang Song
27af3a17c3
Rename Blank SpanContext to Invalid. ( #383 )
2019-06-06 12:48:41 -07:00
Bogdan Drutu
f2f353d0f1
Fix examples in Meter. ( #384 )
2019-06-06 11:49:04 -07:00
Pavol Loffay
c62fe501b8
Remove resource setter and getter from Tracer ( #387 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-06 11:33:22 -07:00
Carlos Alberto Cortez
c75cc68123
Clean up the Link handling in Span. ( #388 )
...
* Clean up the Link handling in Span.
* Update api/src/main/java/io/opentelemetry/trace/Span.java
Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
* Update api/src/main/java/io/opentelemetry/trace/Span.java
Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
2019-06-06 11:30:07 -07:00
Pavol Loffay
4bbb74dee2
Fix comment in startSpan ( #386 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-06-06 09:10:19 -07:00
Carlos Alberto Cortez
bdfdeef7e7
API: Have TraceId/SpanId constructors taking long values. ( #365 )
...
* Have TraceId/SpanId constructors taking long values.
* Add a clarification on the TraceId/SpanId ctors taking longs.
* Add one more small note about equivalency.
2019-06-05 17:01:02 -07:00
Yang Song
f62dbff017
Use static methods instead of variables. ( #379 )
...
* Each DefaultSpan has a unique span id. Remove INSTANCE.
* Use static methods instead of variables. Fixes #309 .
* Fix the order of static fields.
* Revert random SpanId from this PR.
2019-06-05 16:34:53 -07:00
Yang Song
4172855fcd
Rename BlankSpan to DefaultSpan. ( #376 )
2019-06-05 13:14:39 -07:00
Yang Song
c298234a9b
Fix a stale Javadoc. ( #377 )
2019-06-05 08:58:28 -07:00
Carlos Alberto Cortez
005db45a0f
Fix comment for addEvent() as there is no setAttributes() anymore. ( #370 )
2019-06-03 14:27:28 -07:00
Carlos Alberto Cortez
db59b5e10b
Fix comment for Span.end() as there's no overload taking options anymore. ( #371 )
2019-06-03 14:27:05 -07:00
Carlos Alberto Cortez
16477dc96f
Add a small clarification on Span.Builder.setNoParent(). ( #364 )
...
* Add a small clarification on Span.Builder.setNoParent().
* Add a comment for setParent() too.
2019-05-31 12:55:42 -07:00
Yang Song
0a0a27eeeb
Rename package resource to resources. ( #366 )
...
* Rename package resource to resources.
Fixes #259 .
* One more replace.
2019-05-31 12:55:02 -07:00
Yang Song
32fad432ca
Add a note in SpanData documentation. ( #361 )
2019-05-30 17:15:25 -07:00
Tyler Benson
d0e397cc9a
Move [Span|TagMap]InScope and share between api/sdk ( #348 )
...
* Move [Span|TagMap]InScope and share between api/sdk
Removes duplication between the two projects
Fixes #333
* Add javadocs to new classes.
* Add @since attributes to javadocs
* Remove CurrentTagMapUtils
* Route scope creation through ContextUtils
and make scope classes access restricted.
2019-05-30 10:53:28 -07:00
Carlos Alberto Cortez
2afd4d3be5
Apply same logic for parent to TagMap as we do for Span. ( #356 )
2019-05-30 08:52:33 -07:00
Bogdan Drutu
4a3a335491
Move simple samplers to the Samplers class. ( #360 )
2019-05-30 08:03:44 -07:00
Bogdan Drutu
4ca9c116f0
Replace deprecated isSameAs with isSameInstanceAs. ( #359 )
...
* Replace deprecated isSameAs with isSameInstanceAs.
* ./gradlew goJF
2019-05-29 21:02:28 +03:00
Pavol Loffay
ade08cdcd2
Return sampler decision with tags from Sampler ( #339 )
...
* Make sampler return sampling decision
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix review comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Use package visibility
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Define as final
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Rename do decision and fix javadoc
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Make it package private
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Rename to simpledecision
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-27 15:34:43 +03:00
Bogdan Drutu
fc87e7593e
Change DefaultTagger to propagate the TagMap in the process. ( #332 )
2019-05-22 16:17:49 +02:00
Bogdan Drutu
3a7e634260
Rename Noop[Tracer|Tagger|Meter] to Default[Tracer|Tagger|Meter]. ( #321 )
...
* Rename Noop[Tracer|Tagger|Meter] to Default[Tracer|Tagger|Meter].
* Update variable names to default[Tracer|Tagger|Meter].
2019-05-21 13:33:17 +02:00
Carlos Alberto Cortez
792ffa9c59
Make TimedEvent accept io.opentelemetry.trace.Event objects. ( #328 )
2019-05-20 18:21:16 +02:00
Pavol Loffay
eb832c9116
Define noop tracer/metrer/tagger as singletons ( #322 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-20 09:25:07 +02:00
Pavol Loffay
911b4cbc89
Prohibit returning null in extract javadoc ( #327 )
...
* Prohibit returning null in extract javadoc
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-17 19:53:10 +02:00
Carlos Alberto Cortez
c8f0f7cf9c
Span parent cleanup ( #296 )
...
* Set the Span's parent from its Builder.
* Add Span.Builder.setNoParent().
2019-05-17 18:30:50 +02:00
Pavol Loffay
3c30af2bc5
Fix tracer provider javadoc ( #324 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-17 18:03:47 +02:00
Bogdan Drutu
7f4d9536ad
Make Event interface. ( #317 )
2019-05-17 01:46:20 -07:00
Bogdan Drutu
3c022ba9d8
Update Link comments in Span ( #318 )
...
* Update Link comments in Span
* ./gradlew goJF
2019-05-16 07:08:15 -07:00
Bogdan Drutu
584b31fb1a
Rename noop classes to NoopMainClass. ( #315 )
2019-05-16 06:48:52 -07:00
Bogdan Drutu
6ff77bc50b
Make Sampler an interface. ( #316 )
2019-05-15 18:11:49 -07:00
Bogdan Drutu
ed5bfc6d26
Add support to directly interact with current Context in the unsafe for tags. ( #314 )
2019-05-15 17:26:06 -07:00
Pavol Loffay
f11a0186ba
Propagate span context in noop ( #301 )
...
* Propagate span context in noop
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove comment
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-15 16:58:18 -07:00
Pavol Loffay
3937226790
Clarify Link javadoc ( #304 )
...
* Clarify Link javadoc
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Revert and remove different
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-15 09:29:30 -07:00
Pavol Loffay
16a04488e1
Move providers to component.spi packages ( #303 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-15 09:32:22 +02:00
Bogdan Drutu
db6b5fb96e
Cleanup ContextUtil usages. ( #306 )
2019-05-14 16:19:05 -07:00
Pavol Loffay
e143bccfb6
Add tagger to global registry ( #299 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-14 16:04:32 +02:00
Pavol Loffay
33e9c0e3ba
Propagate blank span through context ( #258 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-14 15:46:25 +02:00
Pavol Loffay
8022e33bc6
Use w3c tracecontext format in noop tracer ( #274 )
...
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-14 14:10:07 +02:00
Pavol Loffay
92015fee1a
Add W3C tracecontext propagation ( #273 )
...
* Add W3C tracecontext propagation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Remove empty line
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-13 17:14:46 +02:00
Bogdan Drutu
ba185fd18c
Fix the build because of the race merge between spi Meter and remove Stats. ( #271 )
2019-05-12 14:56:36 -07:00
Bogdan Drutu
e7556411b6
Fix small warnings. ( #267 )
2019-05-10 18:56:31 -07:00
Bogdan Drutu
67f552363c
Move stats to metrics. ( #241 )
2019-05-10 16:50:39 -07:00
Pavol Loffay
1eec5efbfa
Add meter to global registry ( #257 )
...
* Add Meter to global registry
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add nullable
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Add test
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* reset before class
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-10 13:12:06 -07:00
Bogdan Drutu
750e16c5e7
Remove metric registry and fix examples. ( #238 )
2019-05-07 09:34:18 -07:00
Pavol Loffay
3cc0af53af
Remove Trace class ( #252 )
...
* Remove Trace class
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix check
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Fix comments
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* use OT by default in shim
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-07 17:50:45 +02:00
Bogdan Drutu
53a2ea937c
Move TagMapBuilder to TagMap.Builder for consistency. ( #251 )
2019-05-07 08:20:25 -07:00
Pavol Loffay
80e5a1d2f3
Add a global registry ( #218 )
...
* Add a gobal registry for tracer
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* Use foreach
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2019-05-07 13:14:25 +02:00
Bogdan Drutu
898f81bf1c
Remove helper functions that interact with Context from Tracer and move into contrib ( #246 )
2019-05-03 08:44:05 -07:00
Bogdan Drutu
ca0ec9dfa8
Replace everywhere OpenConsensus with OpenTelemetry ( #244 )
...
* Replace everywhere OpenConsensus with OpenTelemetry
* Fix javadoc references.
* Update javadoc exclude in the api.
2019-05-02 13:46:04 -07:00
Carlos Alberto Cortez
354e776ebf
Rename TextFormat to HttpTextFormat, and related. ( #188 )
...
* Rename TextFormat to HttpTextFormat, and related.
* Correct a TextFormat mention in the inline docs.
* Clean some inline bits.
* Fix the build.
2019-04-30 12:08:53 -07:00
Bogdan Drutu
a63080da46
Rename Cumulative to Counter, and use names like templates GaugeLong. ( #221 )
2019-04-26 14:53:59 -07:00
Bogdan Drutu
5344ab14f9
Remove derived metrics and support a callback for the entire metric. ( #219 )
...
* Remove derived metrics and support a callback for the entire metric.
* Fix copyright, add javadoc and remove android compatibility restriction.
* Remove unused interfaces.
2019-04-26 14:32:06 -07:00
Bogdan Drutu
ecf24c1a92
Make Measurement an opaque interface in the API. ( #216 )
2019-04-26 11:22:51 -07:00
Bogdan Drutu
96a34987e3
Change [Double|Long]Point to TimeSeries. ( #217 )
2019-04-25 18:06:53 -07:00
Bogdan Drutu
ad27dc99e8
Restrict access to the key, add helper methods to interact with Context. ( #211 )
2019-04-25 10:35:35 -07:00
Bogdan Drutu
5d9b5b2775
Change from options to builder the metrics creation. ( #202 )
...
* Change from options to builder the metrics creation.
* Add tests in the registry for cumulative long.
* Add javadoc for Metric.
* ./gradlew goJF
2019-04-25 08:52:33 -07:00
Bogdan Drutu
9217bde780
Move SpanBuilder as inner class to Span ( #203 )
2019-04-25 08:24:44 -07:00
Bogdan Drutu
50ec66cec8
Rename buildMeasure to measureBuilder for consistency with trace. ( #204 )
2019-04-25 08:18:17 -07:00
Bogdan Drutu
f811e90ec7
Use interfaces in tags. ( #207 )
2019-04-25 08:18:00 -07:00
Bogdan Drutu
b5ed2f466b
Rename buildMetricRegistry to metricRegistryBuilder for consistency with trace. ( #205 )
2019-04-25 08:17:46 -07:00
Bogdan Drutu
f64454b1e8
Use key with default for span, consistent with tags. ( #209 )
2019-04-25 08:17:26 -07:00
Bogdan Drutu
54e2d7f0fd
remove java6 type args ( #208 )
...
* remove java6 type args
* remove java6 type args
* ./gradlew goJF
2019-04-25 08:17:06 -07:00
Bogdan Drutu
0a5693813b
Fix errorprone warnings in tests. ( #206 )
...
* Fix errorprone warnings in tests.
* ./gradlew goJF
2019-04-25 08:16:50 -07:00
Bogdan Drutu
5f86575217
Make Measure interface and allow StatsRecorder to create it. ( #200 )
2019-04-24 17:59:16 -07:00
Bogdan Drutu
4da44216a5
Change metrics to use interfaces. ( #201 )
2019-04-24 16:24:49 -07:00
Bogdan Drutu
d7f68adc7f
Remove empty common package. ( #199 )
2019-04-24 16:12:48 -07:00
Bogdan Drutu
1ac79b8edb
Add a top-level class for metrics similar with all the other packages. ( #173 )
2019-04-24 15:14:01 -07:00
Yang Song
d5d62311c7
Revert "Remove long values from stats, not too much value added, only complexity. ( #114 )" ( #197 )
...
* Revert "Remove long values from stats, not too much value added, only complexity. (#114 )"
This reverts commit b06d642293 .
* Fix tests.
2019-04-24 14:13:07 -07:00
Carlos Alberto Cortez
0cd1db2b27
Make core classes interfaces. ( #194 )
2019-04-24 12:00:25 -07:00
Carlos Alberto Cortez
f845c6f2b8
Fix the old addAnnotation mention in the docs. ( #195 )
2019-04-24 08:58:48 -07:00
Yang Song
29b831c49b
Add tests on APIs. ( #191 )
2019-04-23 18:06:58 -07:00
Bogdan Drutu
883d00fea6
Fix code in code javadoc warning. ( #193 )
2019-04-23 16:32:26 -07:00
Yang Song
6bbda4f107
Metrics: Add LongCumulative. ( #190 )
2019-04-23 13:15:07 -07:00
Bogdan Drutu
c728bc03d1
Move the environment variable loading logic to sdk. Simplify the Resource package. ( #183 )
2019-04-22 12:53:36 -07:00
Sergey Kanzhelev
e31085e8da
fix javadoc issues ( #181 )
...
* fix javadoc issues
* fix newline
2019-04-22 11:28:45 -07:00
Bogdan Drutu
928049a369
Remove internal annotation and update comment in the internal package. ( #180 )
2019-04-22 11:11:49 -07:00
Sergey Kanzhelev
804ac529eb
add resource on tracer ( #178 )
...
* add resource on tracer
* empty->EMPTY
2019-04-22 11:10:48 -07:00
Bogdan Drutu
87efdd5aaa
Expose EmptyTagMap and remove duplicate code in unsafe package. ( #169 )
...
* Expose EmptyTagMap and remove duplicate code in unsafe package.
* Remove removed method from subclass.
2019-04-22 09:26:27 -07:00
Bogdan Drutu
28c07acf30
Cleanup Timestamp and Duration. ( #174 )
...
* Remove Duration and all unused methods from Timestamp.
* Move timestamp to SpanData as the only consumer.
2019-04-19 23:40:07 -07:00
Bogdan Drutu
bb9ce436a2
Remove experimental API label. ( #172 )
2019-04-19 23:32:19 -07:00
Bogdan Drutu
f0822fc735
Remove child count from the SpanData. ( #170 )
2019-04-19 23:31:53 -07:00
Yang Song
ff86f96dc1
Metrics: Add cumulative API. ( #168 )
2019-04-19 17:45:14 -07:00
Bogdan Drutu
f6e44119b7
Move views to sdk (instrumentation does not need to register views). ( #166 )
2019-04-19 12:07:06 -07:00
Bogdan Drutu
69cfb8b27d
Remove unnecessary metric data from the API. In the SDK we use protos. ( #164 )
2019-04-19 10:17:24 -07:00
Carlos Alberto Cortez
d30e18774b
Remove ProbabilitySampler.java ( #109 )
2019-04-19 18:08:22 +02:00
Bogdan Drutu
a97963b468
Add getter on the TagMap. ( #165 )
2019-04-19 09:05:32 -07:00
Carlos Alberto Cortez
4e5f51cad1
Make SpanContext.INVALID package private and rename it. ( #158 )
...
* Make SpanContext.INVALID package private.
* Renamed SpanContext.INVALID to SpanContext.BLANK.
2019-04-19 18:03:13 +02:00
Bogdan Drutu
58b58c7fbe
Move all propagation formats to context and remove from the package. ( #159 )
2019-04-18 14:55:55 -07:00
Bogdan Drutu
81147b587d
Remove metric component. ( #157 )
2019-04-18 13:15:19 -07:00
Bogdan Drutu
62728d9002
Cleanup exceptions and comments for binary formatters. ( #154 )
2019-04-18 12:48:03 -07:00
Bogdan Drutu
93f43fb940
Move SpanData to main API and add Resource. ( #138 )
2019-04-18 12:21:04 -07:00
Bogdan Drutu
6443bc96cf
Refactor stats API to remove unnecessary MeasureMap (confusing name as well). ( #139 )
2019-04-18 12:20:43 -07:00
Bogdan Drutu
8b61ddfc9f
Move TextFormat in the context. ( #133 )
...
* Move TextFormat in the context.
* Fix the shim to not expect exception.
2019-04-18 10:51:42 -07:00
Bogdan Drutu
af4ca5abd0
Remove unnecessary comment about Status in SpanData. ( #136 )
2019-04-17 14:19:27 -07:00
Bogdan Drutu
6928ae2946
Copy the current OpenCensus protos. ( #134 )
...
* Copy the current OpenCensus protos.
* Update protobuf and grpc
* Remove jmh.
2019-04-17 14:07:12 -07:00
Bogdan Drutu
e286cf0811
Update to gradle 5.3 ( #137 )
2019-04-17 13:49:43 -07:00
Yang Song
0ff8127452
Expose noop implementations. ( #129 )
2019-04-17 09:49:38 -07:00
Bogdan Drutu
1f036ad190
Rename Tracing to Trace to match other packages. ( #125 )
2019-04-16 10:33:57 -07:00
Bogdan Drutu
2c9ac90097
Remove notion about dropped events, links, attributes from SpanData. ( #123 )
2019-04-16 08:45:52 -07:00
Bogdan Drutu
1103010c9c
Remove MessageEvent and make Event extensible. ( #81 )
...
* Remove MessageEvent and make Event extensible.
* Add ImmutableEvent as the default implementation for Event.
* Move back to Event the create methods.
2019-04-15 16:06:12 -07:00
Bogdan Drutu
58ab2c17c0
Move back AttributeValue and Status from data to the main package. ( #122 )
2019-04-15 14:33:54 -07:00
Bogdan Drutu
e4e5f05556
Remove StatsComponent. ( #121 )
2019-04-15 12:35:56 -07:00
Bogdan Drutu
05bc59a273
Remove components from tags. ( #117 )
2019-04-15 09:18:36 -07:00
Bogdan Drutu
cbe4187f84
Cleanup SpanBuilder add links API. ( #115 )
2019-04-15 09:18:13 -07:00
Bogdan Drutu
1f5f216cb5
Remove components from trace. ( #120 )
2019-04-15 09:16:27 -07:00
Carlos Alberto Cortez
587bc4417f
Add Span.updateName(). ( #27 )
...
* Add Span.updateName().
* Mention that any sampling after Span.updateName() will be implementation-specific.
2019-04-15 16:50:41 +02:00
Bogdan Drutu
f7fa9740d3
Update the PropagationComponent to expose implementation specific formats. ( #113 )
...
* Update the PropagationComponent to expose implementation specifc formats.
* Run $./gradlew goJF
2019-04-14 11:23:50 -07:00
Bogdan Drutu
b06d642293
Remove long values from stats, not too much value added, only complexity. ( #114 )
2019-04-14 11:04:11 -07:00
Bogdan Drutu
e313e97821
Remove type from resource, this is a bit confusing with the merge logic. ( #116 )
...
* Remove type from resource, this is a bit confusing with the merge logic.
* Fix Nullable annotations.
2019-04-14 10:15:10 -07:00
Carlos Alberto Cortez
b85ed4954d
Clarify that sampling on Span is merely a hint. ( #110 )
...
* Clarify that sampling on a Span is merely a hint.
* Put the setSampler() clarification in the main doc body.
2019-04-13 09:25:20 -07:00
Bogdan Drutu
3e92c77f1f
Remove the type from links, and add SpanContext. ( #98 )
2019-04-10 15:29:30 -07:00
Bogdan Drutu
5a09274dbe
Make the propagation fromat classes consistent. ( #102 )
2019-04-10 14:42:53 -07:00
Bogdan Drutu
333868b9ba
Clean noop implementation. ( #97 )
2019-04-10 14:23:41 -07:00
Bogdan Drutu
cff608d524
Remove todos and experimental. ( #100 )
2019-04-10 14:23:27 -07:00
Yang Song
13c307649d
Add HTTP text serializer API for TagMap. ( #101 )
2019-04-10 14:02:00 -07:00
Yang Song
ddfbb67e2f
Move Noop Metrics implementation to one class. ( #93 )
2019-04-10 11:41:52 -07:00
Yang Song
080d2cc85b
Remove singleton in NoopTags. ( #91 )
2019-04-10 10:58:28 -07:00
Yang Song
355ebf719e
Move Noop Trace implementation to one class. ( #88 )
...
* Move Noop Trace implementation to one class.
* Remove singleton.
2019-04-10 10:56:30 -07:00
Yang Song
850f4bf9ba
Use Span.Kind.INTERNAL as default. ( #94 )
...
* Use Span.Kind.INTERNAL as default.
* Make SpanKind required in SpanData.
2019-04-10 10:03:48 -07:00
Yang Song
5f26a636c7
Add MetricOptions to build Double/Long Gauge. ( #92 )
...
* Add MetricOptions to build Double/Long Gauge.
* Expose ConstantLabels option.
2019-04-10 09:50:53 -07:00
Yang Song
96f2af3ec2
Rename all TagContext* to TagMap*. ( #95 )
2019-04-10 09:32:53 -07:00
Bogdan Drutu
e1628e4e4e
Specialized the setAttribute to avoid one allocation. ( #77 )
...
* Specialized the setAttribute to avoid one allocation.
* Add back the setAttribute with AttributeValue.
2019-04-10 08:37:01 -07:00
Bogdan Drutu
55b6b0d5ec
Remove has remote parent from the SpanData. ( #90 )
2019-04-09 18:00:16 -07:00
Yang Song
723435a3af
Use getX() to get values from subclasses instead of cast. ( #87 )
...
* Use getX() to get values from subclasses instead of cast.
* Update method names.
* Use better error message for unsupported methods.
* Update error message for AttributeValue.
2019-04-09 17:23:03 -07:00
Bogdan Drutu
f99f3f6d95
Move SpanContext components to the main package. ( #80 )
2019-04-09 13:32:13 -07:00
Yang Song
89e8aa7da4
A bit more clean up. ( #78 )
2019-04-09 11:22:35 -07:00
Yang Song
97808e75ca
Remove all reference to opencensus. ( #76 )
...
* Remove all reference to opencensus.
* Remove a reference that doesn't exist.
* Remove io/ prefix
2019-04-09 11:01:07 -07:00
Carlos Alberto Cortez
3a25881fd5
Remove SpanBuilder.startScopedSpan(). ( #73 )
2019-04-09 09:33:51 -07:00
Bogdan Drutu
7762a4efec
Update readme to reflect java and android versions. ( #72 )
2019-04-09 09:22:20 -07:00
Bogdan Drutu
49042a9ee0
Remove Function and Functions. ( #71 )
2019-04-09 08:18:11 -07:00
Bogdan Drutu
385d118187
Remove unnecessary EndSpanOptions. Status can be set on the Span. ( #64 )
2019-04-09 07:46:27 -07:00
Bogdan Drutu
bd529f3da2
Remove match pattern from Distribution. ( #68 )
...
* Remove match pattern from Distribution.
* Run $./gradlew goJF
2019-04-09 07:45:48 -07:00
Bogdan Drutu
b50a622a19
Remove unnecessary class from trace. ( #66 )
2019-04-09 07:44:11 -07:00
Bogdan Drutu
7cc1c0cb68
Fix warning: [ModifiedButNotUsed]. ( #67 )
2019-04-08 20:36:09 -07:00
Bogdan Drutu
6bd12257ae
Mark all getType as final. ( #69 )
2019-04-08 20:35:40 -07:00
Bogdan Drutu
e5d92bfb2c
Remove unnecessary boxing/unboxing in AttributeValue. ( #63 )
2019-04-08 20:35:15 -07:00
Yang Song
ea330daa3c
Metrics: Use enum types instead of match pattern. ( #55 )
2019-04-08 18:45:23 -07:00
Yang Song
d745533dd2
Stats: Use enum types instead of match pattern. ( #54 )
...
* Stats: Use enum types instead of match pattern.
* Aggregation.AggregationType -> Aggregation.Type
* MeasureType -> Measure.Type
2019-04-08 17:57:09 -07:00
Bogdan Drutu
7f30541314
Remove unnecessary comments from checker framework. ( #62 )
2019-04-08 17:00:54 -07:00
Sergey Kanzhelev
952f62cd10
fix a few warnings and removed deprecated methods ( #47 )
2019-04-08 16:06:12 -07:00
Bogdan Drutu
964b24c3a9
Merge pull request #43 from bogdandrutu/sergkanz/spanData
...
Introducing SpanData, SpanExporter with Handlers and SpanComponent to hold configuration
2019-04-08 15:00:36 -07:00
Bogdan Drutu
6a37d30623
Merge pull request #50 from bogdandrutu/scope
...
Move Scope to context package.
2019-04-08 14:53:20 -07:00
Bogdan Drutu
9285554da8
Move AttributeValueType to AttributeValue.Type
2019-04-08 14:38:11 -07:00
Sergey Kanzhelev
45454d3860
fix code style
2019-04-08 13:50:36 -07:00
Sergey Kanzhelev
7b615ecff5
remove match
2019-04-08 12:42:24 -07:00
Bogdan Drutu
958165da6b
Run $./gradlew goJF
2019-04-08 12:25:55 -07:00
Bogdan Drutu
95a220876b
Move Scope to context package.
2019-04-08 12:19:27 -07:00
Sergey Kanzhelev
f998f6ed6f
fixed more since tags in SpanData
2019-04-08 11:24:24 -07:00
Sergey Kanzhelev
61023479af
fixed since attribute
2019-04-08 10:45:17 -07:00
Sergey Kanzhelev
1c4ccc834b
moved SpanData resocring method to the Tracer
2019-04-08 10:21:05 -07:00
Sergey Kanzhelev
b6c6f9948b
port SpanData
2019-04-04 21:44:18 -07:00
Sergey Kanzhelev
c4b9a04c91
span data compiles now
2019-04-04 10:41:51 -07:00
Sergey Kanzhelev
c6d4d700cf
spandata first code move
2019-04-04 10:10:14 -07:00
Carlos Alberto Cortez
9daa388776
Rename Span.putAttribute*() to Span.setAttribute*() ( #38 )
2019-04-04 09:19:57 -07:00
Sergey Kanzhelev
56203806ad
Merge pull request #31 from bogdandrutu/attribute_get_type
...
Add AttributeValue.getType() and related members.
2019-04-03 09:20:07 -07:00
Sergey Kanzhelev
97b81f19ba
Merge pull request #29 from bogdandrutu/sergkanz/spankinds
...
producer and consumer span kinds
2019-04-03 09:12:46 -07:00
Sergey Kanzhelev
9096974f5f
added Undefined span kind
2019-04-01 23:00:18 -07:00
Sergey Kanzhelev
341bbd5ff2
span.kind had producer and consumer now
2019-04-01 22:56:13 -07:00
Sergey Kanzhelev
c414c83ee8
leftover description mentions
2019-04-01 22:43:26 -07:00
Carlos Alberto Cortez
287a82801d
Add AttributeValue.getType() and related members.
...
This is done in order to have an easier way to extract the
underlying value from an AttributeValue.
2019-04-02 05:15:46 +02:00
Sergey Kanzhelev
198ef656d9
Annotation -> Event
2019-03-29 15:29:00 -07:00
Bogdan Drutu
4124fdacc8
Remove export component from metrics. Cleanup metrics API.
2019-03-28 14:17:38 -07:00
Bogdan Drutu
2a077ce1fa
Remove the reflection loading, this will be replaced.
2019-03-28 14:05:33 -07:00
Bogdan Drutu
26a0aff389
Move well defined classes in data
2019-03-28 14:01:37 -07:00
Bogdan Drutu
90213b0123
Cleanup stats by moving view related into view subpackage.
2019-03-28 13:50:22 -07:00
Bogdan Drutu
a197d09ead
Update gitignore and include TagMap[Builder].
2019-03-28 13:11:33 -07:00
Bogdan Drutu
b8e63b62f9
Move metrics data to metrics/data.
2019-03-27 19:50:32 -07:00
Bogdan Drutu
d677067777
Remove ViewData and AggregationData.
2019-03-27 19:43:35 -07:00
Bogdan Drutu
72ad605d5e
Fix javadoc issues in tags.
2019-03-27 19:30:43 -07:00
Bogdan Drutu
b72a5ec5cd
Rename TagContext[Builder] to TagMap[Builder], remove state.
2019-03-27 19:26:05 -07:00
Bogdan Drutu
a58ec271d7
Remove last deprecated methods from trace.
2019-03-27 10:01:04 -07:00
Bogdan Drutu
8a7f6ca5e3
Remove ServerStats, this will be a contrib package.
2019-03-27 09:52:55 -07:00
Bogdan Drutu
0e82ec6c2b
Cleanup trace/data: remove deprecated, fix javadoc.
2019-03-27 08:34:04 -07:00
Bogdan Drutu
bc47c18e4b
Remove checker framework annotations.
2019-03-27 08:27:27 -07:00
Bogdan Drutu
edaa22cac8
Fix javadoc in Function(s).
2019-03-27 08:19:32 -07:00
Bogdan Drutu
74fc85d83c
Remove unused OpenCensusLibraryInformation.
2019-03-27 08:17:31 -07:00
Bogdan Drutu
809f71a3fd
Fix javadoc in metrics/data/package-info.
2019-03-27 08:10:15 -07:00
Bogdan Drutu
59790e7f22
Change Tracer to not implement any method.
2019-03-27 08:06:24 -07:00
Bogdan Drutu
bb3c3c35d9
Change SpanBuilder to not implement any method.
2019-03-27 08:01:47 -07:00
Bogdan Drutu
1412a2da22
Change Span to not implement any method.
2019-03-27 07:54:16 -07:00
Bogdan Drutu
9cabbeebfc
Remove unused Clock.
2019-03-27 07:11:31 -07:00
Bogdan Drutu
dcc5876463
Remove deprecated NonThrowingCloseable
2019-03-27 07:08:34 -07:00
Bogdan Drutu
eb8696135e
Fix javadoc in metrics/package-info.
2019-03-27 07:05:58 -07:00
Bogdan Drutu
ec4318a10d
Move defined tracing types to subpackage data
2019-03-26 16:31:04 -07:00
Bogdan Drutu
365881a428
Remove deprecated NetworkEvent.
2019-03-26 16:24:46 -07:00
Bogdan Drutu
64c217e613
Remove config and export from trace. Will be added to sdk.
2019-03-26 16:21:44 -07:00
Bogdan Drutu
3bd0e1e522
./gradlew goJF
2019-03-26 16:19:29 -07:00
Bogdan Drutu
9cb3ad5eb7
Add initial OpenCensus API.
2019-03-26 16:02:25 -07:00
Bogdan Drutu
505ef89acf
Cleanup gradle.build.
2019-03-19 18:13:27 -07:00
Bogdan Drutu
7a64e42c91
Minor readme fixes and add badges.
2019-02-26 10:33:57 -08:00
Bogdan Drutu
afaef31350
Setup gradle, checkstyle, errorprone, google-java-format, jmh and first two artifacts context and api.
2019-02-26 10:17:30 -08:00