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