Commit Graph

507 Commits

Author SHA1 Message Date
Lalit Kumar Bhasin 8f778b7412
Add MeterContext::ForEachMeter() method to process callbacks on Meter in thread-safe manner (#1783) 2022-11-17 10:12:51 -08:00
Marc Alff d7a388b154
[SEMANTIC CONVENTIONS] Upgrade to version 1.15.0 (#1761) 2022-11-16 13:46:14 -08:00
Lalit Kumar Bhasin a3e3a90ec6
Fix GlobalLogHandler singleton creation order (#1767) 2022-11-14 13:26:41 -08:00
Ehsan Saei b8b715faf9
[Metrics SDK] Cleanup ENABLE_METRICS_PREVIEW (#1735) 2022-11-06 21:03:08 +00:00
Ehsan Saei 7efeeabeea
[Logs SDK] LogProcessor, LogExporter class name (#1736) 2022-11-06 20:08:24 +00:00
Ehsan Saei ec8895bc98
[Metrics SDK] Cleanup of old _metric api/sdk (#1734) 2022-11-06 19:31:37 +01:00
WenTao Ou 7634edf461
[Logs SDK] LogProcessor, LogExporter changes (#1727)
* + Rename `LogProcessor` to `LogRecordProcessor`
+ Rename `LogExporter` to `LogRecordExporter`
+ Move `*log_processor*` to `*log_record_processor*`
+ Move `*log_exporter*` to `*log_record_exporter*`

Signed-off-by: owent <admin@owent.net>

* Add changelog

Signed-off-by: owent <admin@owent.net>

Signed-off-by: owent <admin@owent.net>
Co-authored-by: Ehsan Saei <71217171+esigo@users.noreply.github.com>
2022-11-04 19:11:32 +01:00
Ehsan Saei 9acde87b08
Prepare v1.7.0 release with Metrics API/SDK GA. (#1721) 2022-10-29 00:01:56 +02:00
Lalit Kumar Bhasin dd7e257b6d
Fix: 1712 - Validate Instrument meta data (name, unit, description) (#1713) 2022-10-27 15:29:09 -07:00
Lalit Kumar Bhasin f17043f2ec
Fix:1674, Add Monotonic Property to Sum Aggregation, and unit tests for Up Down Counter (#1675) 2022-10-25 17:40:09 -07:00
Lalit Kumar Bhasin 419e2d616a
[Metrics SDK] Move Metrics Exemplar processing behind feature flag (#1710) 2022-10-25 15:29:04 -07:00
Ehsan Saei 9b8a4dcdc7
[Metrics API/SDK] Change Meter API/SDK to return nostd::unique_ptr for Sync Instruments (#1707) 2022-10-25 19:02:05 +02:00
Ehsan Saei 7fd76eec7d
[Metrics] Switch to explicit 64 bit integers (#1686) 2022-10-25 16:57:49 +02:00
Ehsan Saei 70777ef9fa
[Metrics SDK] Add support for Pull Metric Reader (#1701) 2022-10-21 23:21:18 +02:00
Marc Alff ac105bf419
[SEMANTIC CONVENTIONS] Upgrade to version 1.14.0 (#1697) 2022-10-19 10:06:25 -07:00
Tom Tan d9f8bcec4b
Fix a potential precision loss on integer in ReservoirCellIndexFor (#1696) 2022-10-18 09:41:59 -07:00
Ehsan Saei 7f37bc3281
fix Histogram crash (#1685) 2022-10-17 17:58:34 +00:00
Lalit Kumar Bhasin 8061423fe9
Fix:1676 Segfault when short export period is used for metrics (#1682) 2022-10-15 04:01:24 -07:00
Tom Tan 47a897d197
Add timeout support to MeterContext::ForceFlush (#1673) 2022-10-14 23:15:27 -07:00
Marc Alff fa5f9fc105
Add CMake OTELCPP_MAINTAINER_MODE (#1650) 2022-10-14 20:52:10 -07:00
Marc Alff f29703b21c
Fixes #249 (#1677)
Fixed many remaining compiler warnings.
2022-10-13 20:56:17 +02:00
Lalit Kumar Bhasin 99f2ba4e34
Fix #1663 Threading issue between Meter::RegisterSyncMetricStorage and Meter::Collect (#1666) 2022-10-11 10:58:07 -07:00
Ehsan Saei 7140166d62
fix data race on MeterContext::meters_ (#1668) 2022-10-09 19:01:03 +02:00
Lalit Kumar Bhasin 79a9471f5c
Fix observable Gauge metrics generation (#1651) 2022-10-06 17:31:14 +00:00
Marc Alff 1dc810d882
Fix #1649 (#1658)
Fixed some warnings reported by clang.

-Wnewline-eof
  no newline at end of file

-Wc++98-compat-extra-semi
  extra ';' outside of a function is incompatible with C++98

-Winconsistent-missing-destructor-override
  '~XXX' overrides a destructor but is not marked 'override'

-Wheader-hygiene
  using namespace directive in global context in header

-Wunused-parameter
  unused parameter

Fixed some warnings reported by gcc.

-Werror=missing-field-initializers
  missing initializer for member ‘opentelemetry::v1::sdk::trace::SamplingResult::trace_state’

-Werror=unused-variable
  unused variable

-Werror=unused-parameter
  unused parameter
2022-10-05 11:41:58 -07:00
Ehsan Saei 7724361917
[Metrics SDK] Add Metrics ExemplarFilter and ExemplarReservoir (#1584) 2022-10-05 18:35:39 +02:00
WenTao Ou 1bda597711
Rename `OnReceive` to `OnEmit` (#1652) 2022-10-04 10:18:33 -07:00
Lalit Kumar Bhasin f21b3a009a
Fix #1588 - Observable Gauge does not reflect updated values, and send the old value always (#1641) 2022-10-02 14:38:50 -07:00
Lalit Kumar Bhasin d127140564
[Metrics SDK] Change boundry type to `double` for Explicit Bucket Histogram Aggregation, and change default bucket range (#1626)
* fix bucket boundaries type for histogram aggregation

* update bucket range, and fix build
2022-10-02 11:39:06 -07:00
Lalit Kumar Bhasin 9e87a6eb59
Fix #1632 - Occasional Segfault with LongCounter instrument (#1638) 2022-09-28 18:05:58 -07:00
Tom Tan 5c180a1688
Prepare v1.6.1 release (#1630) 2022-09-22 20:19:36 -07:00
Marc Alff fe0c62fec8
[Semantic Conventions] Align on the specification 1.13.0 (#1625)
* Fix #1624

* Added changelog
2022-09-21 19:11:11 -07:00
Marc Alff 909c26d89d
Fixes issue #1612. (#1622) 2022-09-20 21:55:05 -07:00
Marc Alff 85b78784a5
Fix more build warnings (#1616) (#1620) 2022-09-20 11:43:08 -07:00
Akshath Kothari 82a81157a9
resource sdk: Update Resource::Merge function docs (#1615) 2022-09-14 19:34:15 -07:00
Marc Alff c7dfc0de26
Fix build warnings (#1613) 2022-09-14 16:32:56 +02:00
Lalit Kumar Bhasin 951768a8b1
changes (#1597)
Co-authored-by: Ehsan Saei <71217171+esigo@users.noreply.github.com>
2022-09-11 22:07:31 -07:00
Lalit Kumar Bhasin e4b04208c6
Fix 1585 - Multiple cumulative metric collections without measurement recording. (#1586) 2022-09-07 16:09:21 -07:00
WenTao Ou b520480b16
Fix `LoggerContext::Shutdown` and tsan of `OtlpHttpClient` (#1592) 2022-09-06 09:56:56 -07:00
Ehsan Saei 5788287d49
metrics warnings (#1583) 2022-08-28 21:03:36 +02:00
Ákos Hadnagy 1f37839651
Fix ObservableInstrument::RemoveCallback (#1582) 2022-08-26 07:55:01 -07:00
Tom Tan 22e64e21f3
Prepare for metrics release candidate v1.6.0 (#1568) 2022-08-16 08:05:53 -07:00
Lalit Kumar Bhasin ad23f20392
METRICS SDK - Calling Observable Instruments callback during metrics collection (#1554) 2022-08-15 16:19:34 -07:00
Ehsan Saei 1b9aa31537
Fix metrics asan and tsan CI (#1562) 2022-08-12 00:14:00 +02:00
Ehsan Saei 6c240fdfbc
remove throw check from metrics with noexcept (#1560) 2022-08-11 18:24:01 +00:00
Ehsan Saei 8844771d30
fix metrics race condition (#1552) 2022-08-11 10:23:16 -07:00
Ehsan Saei 4cf41c4d6c
Fix metrics context circular reference (#1535) 2022-08-11 14:56:39 +00:00
Bryce Arden b4ed0471d0
build: fix IWYU error in instruments.h (#1555) 2022-08-10 20:25:36 -07:00
Ehsan Saei 45037ac2a8
Fix default Metric view name (#1515) 2022-08-10 09:41:39 -07:00
Lalit Kumar Bhasin 8b61c99368
[Metrics SDK] Metric aggregation temporality controls (#1541) 2022-08-08 08:57:19 -07:00
Ehsan Saei 124b198b35
[Metrics SDK] Histogram min/max support (#1540) 2022-08-05 20:18:31 -07:00
Lalit Kumar Bhasin 73a51cf633
Support multiple async callbacks (#1495) 2022-08-05 11:54:00 -07:00
Lalit Kumar Bhasin 78551fbb53
[Trace] Add SpanData getter for Span Recordable (#1508) 2022-08-02 12:09:34 -07:00
Marc Alff 70fd2dcb88
Fix log sdk builder (#1486) (#1524) 2022-08-02 00:17:49 -07:00
Ehsan Saei 3af512e0ed
Add configuration options for Aggregation creation (#1513) 2022-08-01 21:02:54 +00:00
Ehsan Saei d452e8e859
Fix metrics unit test memory leack (#1533) 2022-07-31 19:48:15 +02:00
Tom Tan 9e6fd1e0be
Prepare v1.5.0 release (#1528) 2022-07-30 10:53:30 -07:00
WenTao Ou 59e7496f94
Upgrade `instrumentation_library_metrics` to `scope_metrics` (#1507)
* Upgrade `instrumentation_library_metrics` to `scope_metrics`

Signed-off-by: owentou <owentou@tencent.com>

* Rename `InstrumentationLibrary` -> `InstrumentationScope`

Signed-off-by: owentou <owentou@tencent.com>

* Fix style

Signed-off-by: owentou <owentou@tencent.com>

* Fix compiling

Signed-off-by: owentou <owentou@tencent.com>

* Remove duplicated `ElasticSearchRecordable::SetInstrumentationLibrary`

Signed-off-by: owentou <owentou@tencent.com>

* Fix comments

Signed-off-by: owentou <owentou@tencent.com>

* Update the usage of `instrumentation_library` of prometheus exporter.

Signed-off-by: owentou <owentou@tencent.com>
2022-07-30 03:42:15 -07:00
Ehsan Saei 30b4fcd701
fix compiler warnings (#1514) 2022-07-25 19:13:07 +02:00
Marc Alff 09480544c8
Add automatically semantic conventions from the spec (#873) (#1497) 2022-07-21 10:57:34 -07:00
Ehsan Saei fba16c6c44
fix compiler warnings (#1499)
* fix compiler warnings

* format
2022-07-17 11:26:57 -07:00
Marc Alff e708de5565
Fix trace sdk builder 1393 (#1471) 2022-07-15 12:52:12 -07:00
Marc Alff c22463384d
Fixed file permissions on source code (#1490) (#1491) 2022-07-12 18:47:09 -07:00
WenTao Ou 4762910eab
Merge branch 'merge_main_into_async-changes' into merge_async-changes_into_main (#1413) 2022-07-08 22:16:01 -07:00
luyor 4c08919aa1
Fix trace kIsSampled flag set incorrectly (#1465) 2022-07-01 10:58:56 -07:00
taekahn 7b0bb14837
Fix build warnings about missing aggregates. (#1368) 2022-07-01 10:18:40 -07:00
Lalit Kumar Bhasin b285874cd8
OTLP gRPC Metrics Exporter (#1454) 2022-06-23 16:50:09 -07:00
Tom Tan 96534a7c23
Prepare v1.4.1 patch release (#1458) 2022-06-20 15:16:05 -07:00
univisionsrl 2d78a56baa
Fix variables inizialization (#1430) 2022-06-15 10:19:56 -07:00
Flier Lu 4c657a1fa4
install sdk-config.h (#1419) 2022-06-08 23:06:03 -07:00
WenTao Ou 7e90dae3e4
Fix global log handle symbols when using dlopen (#1420) 2022-06-03 21:30:20 -07:00
Lalit Kumar Bhasin 62b65fab92
[Metrics SDK] Only record non-negative / finite / Non-NAN histogram values (#1427)
* validate histogram value

* handle Nan

* add changelog

* divide by 0 error on windows

* fix markdown lint
2022-06-02 20:30:15 -07:00
Lalit Kumar Bhasin 9df5c4fef1
[Metrics API/SDK] - Pass state to async callback function. (#1408) 2022-05-31 10:27:42 -07:00
Lalit Kumar Bhasin 63803d10c6
fix OTEL_INTERNAL_LOG_INFO (#1407) 2022-05-18 18:56:21 -07:00
Tom Tan 09b92afd9d
Prepare v1.4.0 release (#1404) 2022-05-18 09:22:06 -07:00
WenTao Ou 280f546e17
Upgrade proto to v0.17.0, update log data model (#1383) 2022-05-16 20:46:39 -07:00
Hamed Mansouri e11cc62c47
get span_id from context when Logger::Log received invalid span_id (#1398) 2022-05-16 19:13:28 +00:00
Lalit Kumar Bhasin 45f0235dda
Connect async storage with async instruments (#1388) 2022-05-16 11:10:13 -07:00
Ehsan Saei 95effbde67
Prometheus exporter meters and instrument name (#1378) 2022-05-10 17:55:05 +00:00
Lalit Kumar Bhasin 54abc2741b
reuse temporal metric storage for sync storage (#1369) 2022-05-10 04:17:08 +05:30
Lalit Kumar Bhasin 02630e0b6d
[Metrics SDK] Remove un-necessary files. (#1379) 2022-05-07 09:45:44 +02:00
Lalit Kumar Bhasin 9c734b33ee
Enable metric collection for Async Instruments - Delta and Cumulative (#1334) 2022-05-03 15:37:32 -07:00
Lalit Kumar Bhasin 8ef6764c2f
Fix class member initialization order (#1360) 2022-04-29 18:40:06 -07:00
Lalit Kumar Bhasin f31452286c
Simplify SDK Configuration: Use View with default aggregation if no matching View is configured (#1358) 2022-04-29 17:48:49 -07:00
Lalit Kumar Bhasin 0c74e0b93d
remove exporter registration to meter provider (#1350) 2022-04-25 13:13:13 -07:00
Tom Tan 2e9b7a1867
Remove redundant tail / in CMake install (#1329) 2022-04-16 12:19:53 +05:30
Tom Tan defdfd2ca7
Replace deprecated googletest API (#1327) 2022-04-15 09:08:26 -07:00
Ehsan Saei e3304d7897
fix metrics compiler warnings (#1328) 2022-04-15 12:50:47 +05:30
Lalit Kumar Bhasin 29d68f1146
Implement Merge and Diff operation for Histogram Aggregation (#1303) 2022-04-14 09:53:09 -07:00
Tom Tan da2911cf44
Prepare v1.3.0 release (#1324) 2022-04-12 12:46:07 -07:00
Ehsan Saei 755f109a0d
ostream metrics example (#1312) 2022-04-12 11:12:21 -07:00
WenTao Ou 6b87300b5a
Add building test without RTTI (#1294) 2022-04-07 08:56:44 -07:00
Lalit Kumar Bhasin be75bbc862
Add InstrumentationInfo and Resource to the metrics data to be exported. (#1299) 2022-04-04 22:09:02 +00:00
Lalit Kumar Bhasin 33d9c628f2
Implement periodic exporting metric reader (#1286) 2022-04-01 14:07:44 -07:00
Lalit Kumar Bhasin a7e814a632
Synchronous Metric collection (Delta , Cumulative) (#1265) 2022-03-30 01:01:37 +00:00
Ehsan Saei c1b959079b
Fix span SetAttribute crash (#1283) 2022-03-26 08:25:42 +00:00
Lalit Kumar Bhasin 2c9ce393e0
[Metrics SDK] - fix spelling (AggregationTemporarily to AggregationTemporality) (#1288) 2022-03-24 16:47:49 -07:00
Ehsan Saei 3c7b44bf4f
metrics exemplar round 1 (#1264) 2022-03-24 22:31:41 +01:00
Ehsan Saei e072daa229
install sdk config (#1273) 2022-03-21 07:02:15 -07:00
Lalit Kumar Bhasin 31d888a540
Enable metric collection from MetricReader (#1241) 2022-03-17 18:15:35 -07:00
Ehsan Saei 6bd2f96309
MetricStorage dtors (#1270) 2022-03-17 17:10:32 -07:00
Ehsan Saei da94697c01
AttributesProcessor dtor (#1263) 2022-03-13 09:39:41 -07:00
Lalit Kumar Bhasin 28bd621552
Asynchronous Aggregation storage (#1232) 2022-03-11 22:36:10 +00:00
WenTao Ou c96a3e32f0
Reorder the destructor of members in LoggerProvider and TracerProvider (#1245) 2022-03-08 10:17:02 -08:00
Lalit Kumar Bhasin c10bc36e7d
[Metric SDK] Synchronous Instruments - Aggregation Storage(s) creation for configured views (#1219) 2022-02-24 00:12:23 -08:00
Ehsan Saei 9502339a58
Ostream metric exporter (#1196) 2022-02-19 00:23:57 -08:00
Lalit Kumar Bhasin ef3a623a3b
Add Aggregation Storage (#1213) 2022-02-16 14:58:32 -08:00
Lalit Kumar Bhasin 04e3a68263
Sync and Async Instruments SDK (#1184) 2022-02-09 22:27:55 -08:00
Lalit Kumar Bhasin 44795b6d21
Add Aggregation as part of metrics SDK. (#1178) 2022-02-04 21:53:10 -08:00
Lalit Kumar Bhasin b6a28df5c4
Metrics SDK: Filtering metrics attributes (#1191) 2022-02-04 18:46:06 -08:00
Tom Tan 033b16fe19
Prepare for 1.2.0 release (#1188) 2022-02-01 11:58:47 -08:00
Ehsan Saei a605fd9116
importing gsl::span if std::span is not available (#1167) 2022-01-24 19:14:20 -08:00
Ehsan Saei f380fcba45
Logger-Support-for-Instrumentation-library (#1149) 2022-01-14 19:39:27 -08:00
WenTao Ou d206b505e0
Logger: Propagating resources through LoggerProvider (#1154) 2022-01-12 10:11:43 -08:00
WenTao Ou baab88ff21
Add log level for internal log of sdk (#1147) 2022-01-03 19:25:25 -08:00
Lalit Kumar Bhasin 09fb4e0a0d
Metrics SDK: View API (#1110) 2021-12-27 12:53:37 -08:00
Tom Tan 48033107c8
Prepare for patch release v1.1.1 (#1156) 2021-12-20 14:59:31 -08:00
Lalit Kumar Bhasin 4f5505f9cb
sem ver (#1140) 2021-12-20 12:25:30 -08:00
Ehsan Saei 5aa632741d
Mark tags to bazel targets round 2 (#1094) 2021-12-15 18:50:04 -08:00
Lalit Kumar Bhasin b1b1f6409a
Add Meter and MeterProvider in the SDK (#1078) 2021-11-29 16:20:33 -08:00
WenTao Ou caade511bf
Fix #1081 (#1082) 2021-11-23 12:30:28 -08:00
Tom Tan 426365c2c0
Prepare for releasing 1.1.0 (#1079) 2021-11-22 13:08:32 -08:00
Paurush Garg 9772156789
fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00
Lalit Kumar Bhasin e58524c49a
Move old metrics implementation to different directory, and rename targets to *_deprecated (#1053)
Co-authored-by: Tom Tan <Tom.Tan@microsoft.com>
2021-11-05 14:25:22 -07:00
Ehsan Saei bf176f35a7
fix compiler warnings (#1044) 2021-11-01 15:54:33 -07:00
Lalit Kumar Bhasin 64d736e207
fix namespace resolution for logger (#1047) 2021-11-01 14:44:03 -07:00
WenTao Ou 4110b56314
Implementation of `OtlpHttpLogExporter` (#1030) 2021-10-31 08:54:54 -07:00
WenTao Ou 6e8a169e79
Fix #1028 (#1029) 2021-10-23 21:18:33 -07:00
Tom Tan cfb02dafc7
Prepare for releasing 1.0.1 (#1023) 2021-10-21 21:18:50 -07:00
Lalit Kumar Bhasin 4c61f7b0f3
Adding new Logger:log() method (#1005) 2021-09-30 00:17:26 -07:00
Tom Tan 5de793d3cb
Add schema_url support to both Resource and InstrumentationLibrary (#979) 2021-09-21 01:18:38 -07:00
Lalit Kumar Bhasin 74d4be44f9
Release v1.0.0 (#980) 2021-09-19 23:09:25 -07:00
Lalit Kumar Bhasin 320c5935f6
Add note on experimental semantic convention implementation (#970)
* add note on experimental semantic conv

* nit

* Document experimental feature in versioning doc

* Document experimental feature in versioning doc

* rename experimental headers to experimental-*

* review comments

* missing changes

* fix bazel builg
2021-09-13 09:33:46 -07:00
Tom Tan c8b35ff0df
Cleanup GetEnvironmentVariable and remove unused variable under (#976)
NO_GETENV
2021-09-09 16:29:44 -07:00
Lalit Kumar Bhasin f7af82e666
Support determining parent span from Context while creating new Span (#969)
Co-authored-by: Tom Tan <Tom.Tan@microsoft.com>
2021-09-08 10:24:09 -07:00
Lalit Kumar Bhasin da5c79af98
Release for 1.0.0-rc4 (#940) 2021-08-05 00:24:34 +05:30
Lalit Kumar Bhasin 5067e49bce
Move env-var read logic to common dir, and optional reading of env-var (#924) 2021-08-02 22:25:58 +05:30
Tom Tan a9b2f9f53f
Fix race condition in circular buffer simulation test (#931) 2021-07-31 13:43:48 +05:30
Lalit Kumar Bhasin 5414ebe92a
Adding semantic-convention attributes for trace (#868) 2021-07-30 22:17:53 +05:30
Lalit Kumar Bhasin ef16d0048a
add global log handler (#877) 2021-07-30 17:40:32 +05:30
Lalit Kumar Bhasin 083cf026ac
Fix for resource deletion after tracer provider shutdown (#911) 2021-07-22 07:32:37 +05:30
Lalit Kumar Bhasin ecb9a27f12
Add resource and instrumentation library support for OStreamSpanExporter (#906) 2021-07-19 20:56:44 +05:30
Lalit Kumar Bhasin af34ccf43f
Release for 1.0.0-rc3 (#900) 2021-07-13 22:09:08 +05:30
Lalit Kumar Bhasin 124087f145
runtime context cleanup (#885) 2021-07-09 10:11:45 +05:30
Lalit Kumar Bhasin fdade9a4b4
Otlp Exporter : Handling InstrumentationLibrary, and Link's trace state (#823) 2021-07-02 10:09:53 +05:30
Lalit Kumar Bhasin 2383d99d4d
Associate valid SpanId/SpanContext with Spans irrespective of the Sampling decision. (#879) 2021-07-01 09:11:50 +05:30
Lalit Kumar Bhasin ae6d81088c
Adding semantic-convention attributes for resources (#872) 2021-06-24 10:24:54 +05:30
Lalit Kumar Bhasin c0b459e75d
Release for 1.0.0-rc2 (#866) 2021-06-18 22:02:28 +05:30
Max Golovanov 7fca2c3958
Fix issues with `Win32` / `x86` compilation (#847) 2021-06-15 10:01:03 +05:30
WenTao Ou 521ebd8f51
+ Move `CORE_RUNTIME_LIBS` into dependency of `opentelemetry_api` (#850) 2021-06-12 21:29:37 +05:30
Tom Tan 1f5b886bc6
Check size equalness before comparing the whole producer/consumer arrays (#845) 2021-06-12 00:13:29 +05:30
WenTao Ou 1060f882be
Fix issue #834 (#835) 2021-06-09 09:12:44 +05:30
WenTao Ou 12946c8d07
Fixes #826 (#827) 2021-06-07 12:54:12 +05:30
Lalit Kumar Bhasin 93dd39bd92
Release for 1.0.0-rc1 (#824) 2021-06-05 01:11:32 +05:30
Max Golovanov d0e73c87c4
Switch from MPark variant to `absl::variant` as default (#771) 2021-06-04 23:59:02 +05:30
Lalit Kumar Bhasin f793e6e45e
Add preview feature-flag/macro for logs (#807) 2021-05-29 10:04:52 +05:30
Lalit Kumar Bhasin 12e56f9f4a
Exclude header files for metrics from header-only cmake targets (#806) 2021-05-28 14:27:15 +05:30
Lalit Kumar Bhasin ac0e6174e7
Release for 0.7.0 (#800) 2021-05-27 07:55:56 +05:30
Lalit Kumar Bhasin 3fa6525f40
Add missing Copyright headers (#754) 2021-05-25 11:37:08 +05:30
Lalit Kumar Bhasin 57d80f742a
fix for sampling root span (#784) 2021-05-24 10:04:31 +05:30
Lalit Kumar Bhasin b696e11b7c
Add preview feature-flag/macro for metrics (#745) 2021-05-14 14:37:28 +05:30
Tom Tan 42e9330dd0
Disable MSVC warning C4250 for metrics Instrument (#749) 2021-05-14 14:02:02 +05:30
Tom Tan 414a7314f7
Make ContextValue default constructible with monostate (#731) 2021-05-13 22:38:35 +05:30
Lalit Kumar Bhasin b4584adeaa
Release for 0.6.0 (#739) 2021-05-12 00:18:25 +05:30
OWenT 5278e8c035
Fix #724 (#725) 2021-05-11 12:34:07 +05:30
Lalit Kumar Bhasin 5a97750c6e
Cleanup: Get Span from Context, Set Span to Context (#723) 2021-05-07 09:54:23 +05:30
Lalit Kumar Bhasin c7f49debf3
Propagate resource to exporters (#706) 2021-05-01 01:09:38 +05:30
Tom Tan fc7a325efa
Convert null to empty string for tracer name (#712) 2021-04-30 01:25:43 +05:30
Lalit Kumar Bhasin a987f0ac0b
Support for multiple processors (#692) 2021-04-30 00:16:50 +05:30
Tom Tan 7f5252f237
Populate InstrumentationLibrary to exporters (#700) 2021-04-29 00:49:53 +05:30
Max Golovanov c873caf0e8
Visual Studio 2019 (C++20 w/STDLIB) fixes (#704) 2021-04-27 22:46:17 +05:30
Tom Tan 516d02d8bc
Fix MSVC build warning by replacing std::getenv by getenv_s (#698) 2021-04-27 17:18:06 +05:30
Tom Tan 30434fa93e
Add InstrumentationLibrary to Tracer (#693) 2021-04-26 23:02:52 +05:30
Lalit Kumar Bhasin 790900857e
Release for 0.5.0 (#697) 2021-04-26 22:41:26 +05:30
Johannes Tax a978920411
Get rid of obsolete core namespace in API (#686) 2021-04-22 12:15:10 +05:30
Lalit Kumar Bhasin 2e7594e677
Support Custom span-id and trace-id generator (#681) 2021-04-21 12:43:58 +05:30
Tom Tan ae060d157b
Enable resource detector tests on Windows (#651) 2021-04-20 22:06:56 +05:30
Johannes Tax 14eef5d361
Attribute value cleanup (#679) 2021-04-20 14:38:41 +05:30
Josh Suereth 7b07013639
Create shared context for updating span pipeline from TracerProvider and affecting Tracer. (#650) 2021-04-16 20:55:22 +05:30
Evgeny Yakimov aeb8230ad2
Add SpanContext (and TraceState) to Recordable (#667) 2021-04-13 09:28:17 +05:30
Lalit Kumar Bhasin 3ce3e7667f
Release for 0.4.0 (#672) 2021-04-12 22:33:08 +05:30
anshulkumar19 9a99b970ab
Refactor/duplicate enums (#658) 2021-04-09 23:15:47 +05:30
Evgeny Yakimov 364c5cb3b1
Add SpanContext accessor SpanDataLink (#659)
Although the context was stored, it was not accessible. I've extended
tests to also validate that a valid context has been passed.
2021-04-07 20:11:25 +05:30
Max Golovanov 2181b01f77
Code improvements for ETW exporter (#519) 2021-04-03 12:34:55 +05:30
Siim Kallas 1a3e6ccf44
move atomic_shared_ptr to sdk common namespace (#625) 2021-03-24 21:16:57 +05:30
Quentin bd68a22ff5
Fix some C++ warnings (#619) 2021-03-24 14:31:10 +05:30
Lalit Kumar Bhasin 7d083a5b84
Release for 0.3.0 (#617) 2021-03-23 09:55:39 +05:30
Lalit Kumar Bhasin e9c4e2557c
Set default service.name if missing (#616) 2021-03-22 10:20:33 +05:30
Lalit Kumar Bhasin 9aba9507b6
Add TraceState in SamplerResult, and use it for creating span context. (#591) 2021-03-11 20:25:42 +05:30
Tom Tan a33bb550c6
Propagate trace_flags from parent span to child span (#603) 2021-03-11 00:45:16 +05:30
Lalit Kumar Bhasin 7706c6d61d
Release for 0.2.0 (#594) 2021-03-03 01:06:00 +05:30
Tom Tan f4dd108913
Add ForceFlush to TracerProvider in SDK (#588) 2021-02-27 06:55:20 +05:30
Tom Tan 3848295db0
Add TraceState to SpanContext (#561) 2021-02-23 23:57:10 +05:30
Reiley Yang a0777d1e77
Add markdownlint (#578) 2021-02-12 13:24:36 -08:00
Lalit Kumar Bhasin 74ad7b14cd
Passing parent context to SpanProcessor::OnStart() (#552) 2021-02-03 13:14:33 +05:30
Tom Tan 92f0533ca4
Remove all TBD files (#547) 2021-02-02 13:11:52 +05:30
Bogdan Drutu dafd82a417
Add options to construct BatchSpanProcessor (#543) 2021-02-01 23:51:43 +05:30
Bogdan Drutu 20db113ca3
Upgrade clang-format to 10.x, run ./tools/format.sh (#544) 2021-02-01 11:40:16 +05:30
Tom Tan 28366779d8
Fix branch name to main in links (#545) 2021-01-29 16:24:28 -08:00
Lalit Kumar Bhasin cae3511915
Update StatusCode as per specs (#535) 2021-01-29 13:57:52 +05:30
Lalit Kumar Bhasin ce89aa1094
Resource sdk Implementation (#502) 2021-01-22 10:27:17 +05:30
Reiley Yang ab7f5f2054
Add spell check to CI (#527) 2021-01-21 09:49:02 +05:30
Karen Xu c8db8476ef
Use attribute_utils.h from common instead of trace (#482) 2021-01-09 11:42:19 +05:30
Mishal Shah e8ef7eaeca
ETW Tracer exporter (#376) 2021-01-06 23:51:55 +05:30
OWenT 98bbdd6fc3
Cmake porting (#432) 2020-12-30 00:03:52 +05:30
Mark 7e063163d7
Added missing pragma once (#479) 2020-12-28 20:54:58 +05:30
Max Golovanov 25a8668b0f
Resolve NOMINMAX issues where possible (#481) 2020-12-23 15:21:01 +05:30
Johannes Tax 2c976112f4
Use a consistent key for the current span in the context (#480) 2020-12-23 13:43:07 +05:30
Max Golovanov 1e7b9d8a95
Using STD library for API surface (#374) 2020-12-22 11:27:48 +05:30
Karen Xu 5e946f96c3
Add batch log processor implementation with test coverage (#434) 2020-12-22 09:10:04 +05:30
Mark d787758e33
Supporting Logging API .Log() Overloads and GetName() method (#422) 2020-12-20 18:15:53 +05:30
Lalit Kumar Bhasin aff3547327
as per semver2 first release should be 0.1.0 (#463) 2020-12-18 10:22:34 +05:30
Lalit Kumar Bhasin 652b49aa58
Add changelog at api and sdk level, abi version for sdk (#451) 2020-12-18 00:29:40 +05:30
Karen Xu 106c00a4a4
Add a Recordable interface, implementation, and tests for logs (#438) 2020-12-14 23:41:14 +05:30
Tom Tan 68e510c68e
Change Shutdown() and ForceFlush() to return bool for traces (#419) 2020-12-11 23:54:46 +05:30
Lalit Kumar Bhasin c5c82fdfe9
Propagate span kind to exporter (#423)
Propagate span kind to exporter
2020-12-09 01:43:01 +05:30
Tom Tan 1694139717
Change type of batch_size_received in simple_log_processor_test to (#425)
Change type of batch_size_received to size_t
2020-12-08 12:27:17 +05:30
Karen Xu daab565f05
Add simple log processor and log exporter interface (#403)
* Add simple log processor and log exporter interface

* review comments

* update default duration and description

* Use span instead of vector for Export()

* Minor: timeout changed (for consistency)

* Remove TODOs, run format CI, and rebase master
2020-12-04 12:10:17 +05:30
Lalit Kumar Bhasin 956270eab8
script to add versioning info (#399)
* version hook

* add version hook files

* format script

* add header in script

* update api version

* revert version.cc

* add updating ABI version

* add versioning guidelines

* move tag to new version

* fix relative link, update comment in version.cc

* Update RELEASING.md

Co-authored-by: Tom Tan <lilotom@gmail.com>

* another try on updating link

* added needed resources in docfx.json

Co-authored-by: Tom Tan <lilotom@gmail.com>
2020-12-04 07:55:23 +05:30
Max Golovanov 2a516addb6
Build tools: build configurations, vcpkg support, vcpkg port file for OpenTelemetry, use submodules for CMake deps (#377) 2020-11-30 14:47:41 -08:00
Tom Tan ecf88efa20
Add Shutdown method to TracerProvider (#394) 2020-11-23 19:22:26 -08:00
Lalit Kumar Bhasin f101607a64
curl based implementation for http client api (#385) 2020-11-18 12:49:09 -08:00
Mark 88d43a3c59
Add Logging SDK implementation for Logging API (#386) 2020-11-16 19:11:48 -08:00
Lalit Kumar Bhasin fd8527ba39
Passing links to sampler API (#391) 2020-11-16 11:30:36 -08:00
Lalit Kumar Bhasin 2bab26e249
Support adding links to span (#351) 2020-11-12 11:47:05 -08:00
Tom Tan 984e6ca3c3
Populate trace_id and spand_id to Recordable in Recordable::AddLink (#380) 2020-11-10 11:55:09 -08:00
Lalit Kumar Bhasin 942bff4c1e
Providing an abstract HTTP interface. (#370) 2020-10-23 22:35:34 -07:00
Karen Xu f2708921be
Move KeyValueIterable and KeyValueIterableView from trace to common (#363) 2020-10-17 20:10:44 -07:00
Johannes Tax 5c8911415a
Update samplers according to spec changes (#364) 2020-10-16 09:31:14 -07:00
Josh Suereth 0f3a5c820c
Simple fix for #331: Add atomic_flag protection around exporter usage in SimpleProcessor. (#358) 2020-10-12 15:40:41 -07:00
Johannes Tax 4a1b793ce7
Add functionality to explicitely specify a span parent (#349) 2020-10-09 00:55:39 -07:00
Lalit Kumar Bhasin 7826040ba3
fix compile time warnings (#352) 2020-10-07 10:27:53 -07:00
Tom Tan cbcc63ea7e
Add explicit type conversion to narrower data type (#347) 2020-10-05 09:42:50 -07:00
Tom Tan 25a0ea59e7
AddEvent support for Span (#343) 2020-09-29 19:10:11 -07:00
Nick Holbrook 94755169c0
Move Mock Exporter to Separate File (#206) 2020-09-29 09:46:41 -07:00
Johannes Tax 8d786439b8
Optimize no-op span creation (#340) 2020-09-29 09:27:36 -07:00
Tom Tan 813816cde6
Removed unnecessary reference to StartSpanOptions (#338) 2020-09-25 11:26:14 -07:00
Johannes Tax a39b9b38d8
Remove static global context_handler_ variable (#322) 2020-09-21 15:59:08 -07:00
Tom Tan b827d790c2
Update sample decision name based on spec update (#327) 2020-09-16 21:02:48 -07:00
Johannes Tax dbf2e36478
Add Scope object to control the currently active span (#324) 2020-09-15 08:06:31 -07:00
Max Golovanov 7100f73644
Visual Studio compiler warnings clean-up (#315) 2020-09-09 14:33:49 -07:00
Eric Hsueh 78012e12c9
Modify KvToString() Method in Instrument.h to Allow Valid Label Names in Records For Prometheus (#298) 2020-08-28 17:08:12 -07:00
Nadia Ciobanu c36024dd9e
Propagate trace and parent span ids (#305) 2020-08-28 13:32:36 -07:00
Tianlin-Zhao 09983abea2
Added Http Trace Context (#143) 2020-08-25 18:18:40 -07:00
Brandon Kimberly 4710d4b249
Add logic to refrain from exporting un-updated metric instruments (#293) 2020-08-24 15:39:54 -07:00
Nadia Ciobanu c6949159f2
Set ids for spans (#290) 2020-08-24 11:59:52 -07:00
Eric Hsueh 1ce011f176
Add Prometheus Exporter: Step 0 - Update MetricsExporter Interface (#240) 2020-08-20 19:19:58 -07:00
Hudson Humphries 47d5a55c9d
Use Struct as Key in Processor (#272) 2020-08-19 14:22:19 -07:00
Johannes Tax 18a44cad93
Add a memory check task to the CI (#246) 2020-08-17 08:43:51 -07:00
Johannes Tax 7711f73f7f
Add int32_t support for SpanData attributes (#243) 2020-08-15 11:31:19 -07:00