Commit Graph

108 Commits

Author SHA1 Message Date
Marc Alff 545f9f4108
[CodeHealth] fix include-what-you-use, part 8 (#3465) 2025-06-09 10:23:10 +02:00
Pranav Sharma d976876feb
[API] Add Enabled method to Tracer (#3357) 2025-04-22 07:13:52 -07:00
Marc Alff 5bc053e522
[SDK] Support OTEL_SDK_DISABLED environment variable (#3245) 2025-02-05 21:42:51 +01:00
Pranav Sharma 52a80b5a04
[SDK] Add tracer scope configurator (#3137) 2025-01-30 21:27:36 +01:00
Marc Alff e5a1a15296
[Code Health] Include what you use, part 6 (#3216) 2025-01-08 10:31:06 +01:00
Doug Barker 92bf8daad5
[SDK] Fix include instrumentation scope attributes in equal method (#3214) 2024-12-18 21:13:44 +01:00
Marc Alff d15da3b256
[Code health] Include what you use cleanup, part 5 (#3140) 2024-11-27 11:57:47 +01:00
Marc Alff c6d394547b
[Code Health] include-what-you-use cleanup, part 4 (#3040) 2024-09-11 21:05:32 +02:00
Siddhartha Malladi eb2b9753ea
[Code Health] clang-tidy cleanup, part 1 (#2990) 2024-07-11 11:45:17 +02:00
Marc Alff c42dcca9f8
[CI] Upgrade to clang-format 18 (#2684) 2024-05-29 22:01:06 +02:00
Keith Smiley eaaf6cd602
Fix old style cast warning (#2567)
Fixes https://github.com/open-telemetry/opentelemetry-cpp/issues/2556
2024-02-28 23:01:19 +01:00
Marc Alff 423ecacdf6
[PROTO] Upgrade to opentelemetry-proto v1.1.0 (#2488) 2024-01-16 23:49:59 +01:00
Lalit Kumar Bhasin 48e633e740
[API] Create root span with active span (#2427) 2023-12-06 00:26:16 +01:00
Marc Alff 17da6d87c1
[API] Add a new AddLink() operation to Span (#2380) 2023-10-27 18:27:57 +02:00
Marc Alff 91dd15fbdf
[API] Add InstrumentationScope attributes in TracerProvider::GetTracer() (#2371) 2023-10-19 23:34:58 +02:00
Marc Alff 05b26cae87
[BUILD] error: read-only reference ‘value’ used as ‘asm’ output (#2354) 2023-10-10 01:30:27 +02:00
Marc Alff 8b613188a3
[SDK] TracerProvider should own TracerContext, not share it (#2221) 2023-07-08 16:07:38 +02:00
Cengizhan Pasaoglu cfcda5728e
[SDK] Header files cleanup, use forward declarations (#2182) 2023-06-21 00:11:31 +02:00
WenTao Ou 9b222f2af1
Add `ForceFlush` for all `LogRecordExporter`s and `SpanExporter`s. (#2000) 2023-03-19 22:29:21 -07:00
Tom Tan 4daca390e9
Build OpenTelemetry C++ SDK and exporter into DLL (#1932) 2023-02-13 09:46:25 -08:00
Marc Alff 6925fc4751
Fixed copyright for every file under sdk. (#1961) 2023-02-06 20:14:19 -08:00
Lalit Kumar Bhasin 61bc860a49
[ETW Exporter] Add Virtual destructor for TailSampler, Update Maintainer mode warnings for MSVC (#1897) 2023-01-04 09:33:02 -08:00
Johan Peltenburg c0deb4065e
Log a warning when the BatchSpanProcessor queue is full. (#1871) 2022-12-22 23:31:10 -08:00
Tom Tan 3f0eee6b91
Add option WITH_BENCHMARK to disable building benchmarks (#1794) 2022-11-23 17:01:33 -08:00
Marc Alff f29703b21c
Fixes #249 (#1677)
Fixed many remaining compiler warnings.
2022-10-13 20:56:17 +02: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
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
Marc Alff c7dfc0de26
Fix build warnings (#1613) 2022-09-14 16:32:56 +02: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
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
WenTao Ou 6b87300b5a
Add building test without RTTI (#1294) 2022-04-07 08:56:44 -07:00
Ehsan Saei c1b959079b
Fix span SetAttribute crash (#1283) 2022-03-26 08:25:42 +00:00
WenTao Ou c96a3e32f0
Reorder the destructor of members in LoggerProvider and TracerProvider (#1245) 2022-03-08 10:17:02 -08:00
Ehsan Saei 5aa632741d
Mark tags to bazel targets round 2 (#1094) 2021-12-15 18:50:04 -08:00
Paurush Garg 9772156789
fix: issue 368- consistent namespace scope resolution (#1008) 2021-11-15 19:53:34 -08:00
WenTao Ou 4110b56314
Implementation of `OtlpHttpLogExporter` (#1030) 2021-10-31 08:54:54 -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 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 124087f145
runtime context cleanup (#885) 2021-07-09 10:11:45 +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
WenTao Ou 521ebd8f51
+ Move `CORE_RUNTIME_LIBS` into dependency of `opentelemetry_api` (#850) 2021-06-12 21:29:37 +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 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 30434fa93e
Add InstrumentationLibrary to Tracer (#693) 2021-04-26 23:02:52 +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