Commit Graph

120 Commits

Author SHA1 Message Date
jack-berg 42056f57c8
Introduce ConfigProvider API (#6549) 2025-03-04 17:21:19 -06:00
jack-berg f52554bc52
Rebrand file configuration to declarative configuration in documentation (#6812) 2024-10-22 09:12:07 -05:00
jack-berg 649f963a1a
Stabilize log any value (#6591) 2024-08-30 10:22:38 -05:00
jack-berg ea6e3ddb7e
Add file configuration ComponentProvider support for exporters (#6493) 2024-08-05 11:06:27 -05:00
jack-berg 7655192df5
Add autoconfigure console alias for logging exporter (#6027) 2024-03-12 09:43:19 -05:00
jack-berg 01503efe97
Meter provider configuration factory (#5773) 2023-08-28 14:22:03 -05:00
jack-berg 0830039dcf
Remove redundant gradle dependencies (#5621) 2023-07-18 12:19:44 -05:00
jack-berg d67faf2aef
Merge sdk logs testing (#5431) 2023-05-12 15:59:12 -05:00
jack-berg 0a34867a57
Rename setEpoch to setTimestamp (#5368) 2023-04-11 10:24:46 -05:00
jack-berg 06158ffc2d
Cleanup readmes (#5263) 2023-03-06 09:39:34 -06:00
jack-berg 6edba790d8
Cleanup autoconfigured resources in case of exception (#5117)
* Cleanup autoconfigured resources in case of exception

* Improve test coverage

* Spotless

* Reduce logging level to info for multiple shutdowns

* Fix build
2023-01-22 09:25:50 -06:00
jack-berg 8897dd4d5c
Revert removal final newline (#5133)
* Revert removal final newline

* Add to final newlin editorconfigoverride
2023-01-18 08:51:41 -06:00
dependabot[bot] 1e4a7be6be
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (#5126)
* Bump spotless-plugin-gradle from 6.12.1 to 6.13.0

Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless) from 6.12.1 to 6.13.0.
- [Release notes](https://github.com/diffplug/spotless/releases)
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md)
- [Commits](https://github.com/diffplug/spotless/compare/gradle/6.12.1...plugin-gradle/6.13.0)

---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-plugin-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-01-17 16:47:56 -06:00
jack-berg e82ab27582
Add proper shutdown implementations for all exporters (#5113) 2023-01-13 19:27:03 -08:00
jack-berg cbd629c579
Implement logging exporter providers (#4950) 2022-11-28 10:14:44 -06:00
jack-berg 3a61673450
Prepare release 1.19.0 (#4821)
* wip

* Add changelog entry for 1.19.0

* Add new since annotations

* Add late additions to changelog

* PR feedback

* Fix 1.18.0 ref
2022-10-07 09:00:45 -05:00
jack-berg 647ed91c15
Rename LogData to LogRecordData (#4774)
* Rename LogData to LogRecordData

* spotless
2022-09-26 10:30:59 -05:00
jack-berg 9b17be3114
Rename LogExporter to LogRecordExporter (#4773) 2022-09-26 09:57:30 -05:00
jack-berg f7317c6e8d
Split out logs API (#4764) 2022-09-22 13:23:52 -05:00
jack-berg 2bc88f45c6
Deprecate multi argument InstrumentationScopeInfo create method (#4710)
* Deprecate multi argument InstrumentationScopeInfo create method

* PR feedback
2022-08-24 13:35:31 -05:00
jack-berg a8086498b1
Add TestLogData, remove public LogDataImpl and LogDataBuilder from log SDK (#4635)
* Add TestLogData, remove public LogDataImpl and LogDataBuilder from log sdk

* pr comment
2022-07-27 13:15:25 -05:00
jack-berg 21a61e5894
Change MetricExporter getPreferredTemporality to accept InstrumentType (#4288) 2022-03-24 11:25:50 -05:00
jack-berg 59a6061dc5
Deprecate InstrumentationLibraryInfo (#4256)
* Deprecate InstrumentationLibraryInfo

* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal 26c04299d3
Make MetricData factories internal (#4257) 2022-03-11 16:30:13 +09:00
Anuraag Agrawal ef427f69ce
Convert ValueAtPercentile to ValueAtQuantile (#4254) 2022-03-10 11:30:20 +09:00
Anuraag Agrawal 048a0c8d14
Migrate PointData to interface (#4242) 2022-03-09 11:16:48 +09:00
Anuraag Agrawal cb80383df8
Extract SummaryData interface for DoubleSummaryData (#4224)
* Extract SummaryData interface for DoubleSummaryData

* ValueAtQuantile too

* javadoc
2022-03-04 17:20:21 +09:00
Anuraag Agrawal a6107d5590
Remove type-specific SumData (#4216)
* Remove type-specific SumData

* scare
2022-03-02 08:40:21 +09:00
Anuraag Agrawal 03c41ec940
Add a testing-internal module and functionality to SuppressLogger for… (#4130)
* Improve behavior of some tests (#4123)

* Optimize

* Fix logging.properties

* Clean
2022-02-01 16:04:39 +09:00
Anuraag Agrawal dfb4a74ac5
Update errorprone (#4048) 2022-01-06 11:33:00 +09:00
jack-berg 8d9a57d110
Refactor BatchLogProcessor, add MultiLogExporter, add NoopLogExporter, add LogExporter#flush() (#3955) 2021-12-09 08:40:08 +09:00
jack-berg 53030b7266
Configurable temporality (#3960)
* Allow configuration of preferred temporality in LoggingMetricExporter and OtlpJsonLoggingMetricExporter

* Make InMemoryMetricReader preferred temporality configurable

* Add create() methods to LoggingSpanExporter, LoggingMetricExporter, and SystemOutLogExporter, deprecate public constructors
2021-12-08 13:58:59 +09:00
jason plumb 04239495ac
Let LogDataBuilder take a SpanContext directly. (#3942)
* Let LogDataBuilder take a SpanContext directly.

* rename to setContext() based on PR review, and simplify test code.

* Update sdk/logs/src/main/java/io/opentelemetry/sdk/logs/data/LogDataBuilder.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
2021-12-03 17:57:22 -08:00
jack-berg cb057dda8e
Rework log fields (#3837)
* Rework log fields

* PR feedback
2021-11-09 18:04:09 -08:00
jason plumb 7b86d53427
Let clock be overridden for log creators (#3823)
* Allow the clock to be overridden so that we aren't directly coupled to System.currentTimeMillis()

* move clock usage to dedicated test

* move clock foolery to its own dedicated test method

* address some code review comments and checkstyle violations

* cleanup: remove builder() from LogData interface and remove clock methods from LogBuilder interface.

* make inner impl static

* make method package private

* factor builder out to top-level class and remove creation work from constructor

* fix up tests for SdkLogEmitter and SdkLogBuilder

* backfill coverage for second shutdown

* remove mock
2021-11-09 14:00:33 +09:00
jack-berg f171884ed5
Refactor Log SDK to implement OTEP-0150 (#3759)
* Add log processors to the builder so LogSinkSdkProvider is immutable

* Add api diff

* Rename to SdkLogSinkProvider

* Rework log sdk

* Refactor logging sdk to implement OTEP-0150

* Fix typo

* Add unit tests

* Reorganize to facilitate potential future API

* Rename ReadableLog* to SdkLog*, make SdkLog* package private

* Add LogEmitterProvider interface, tidy up some javadoc

* Respond to PR feedback

* Make SdkLogEmitterBuilder final

* Switch to LogEmitter.logBuilder().emit() pattern
2021-11-01 13:16:59 +09:00
John Watson 9cd3f2f79b
Add a log exporter that outputs to standard out. (#3748)
* Add a log exporter that outputs to standard out.

* add a unit test for the format

* bump up the coverage

* renames and formatting tweaks from review
2021-10-15 11:00:53 -07:00
Anuraag Agrawal 6ef3091cfb
Copy in spotless-conventions from instrumentation repo (#3554)
* Copy in spotless-conventions from instrumentation repo.

* Reformat

* A few more dotfiles
2021-08-27 08:28:31 -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
Trask Stalnaker 60c3c5ca0c
Format build.gradle.kts files (#3427) 2021-07-29 13:21:38 +09:00
Josh Suereth b12a57ed21
Migrate Metrics SDK "data' package to Attributes (#3352)
* Update java metrics data model and create assertion based testing library.

* Update existing SDK for Label => Attribute in data model

- Finish wiring through changes to all code/tests.
- DOES NOT touch API
- Update existing tests to use new testing library to be sensitive to attribute vs. label hashing alterations + equality of the metrics.data package types.

* Fix javadoc breakages

* Fix JMH compile

* Finish javadoc

* Fixes from review

* Remove botched file.

* Fixes from review.
2021-07-01 09:15:44 -07:00
Anuraag Agrawal ce9c8854c7
Extract publishing and animalsniffer plugins. (#3334) 2021-06-22 08:23:16 +09:00
Anuraag Agrawal 7f544416e4
Define an extension for otel-specific configuration of Java. (#3317) 2021-06-17 15:54:25 +09:00
Anuraag Agrawal b9ca09b6c1
Extract java conventions plugin. (#3316) 2021-06-15 12:29:47 -07:00
Anuraag Agrawal c4f612ee5e
Update dependencies (#3105) 2021-04-05 08:49:05 -07:00
Bogdan Drutu 93dd38a18d
Ensure ParametersAreNonnullByDefault is present in all packages (#2879)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-18 08:58:01 -08:00
Anuraag Agrawal 900c35ed8c
Migrate remaining gradle scripts to kotlin (#2820)
* Migrate remaining gradle scripts to kotlin

* Finish more
2021-02-16 14:11:07 -08:00
Bogdan Drutu d932baa919
Remove trivial usage of fromLong[s] methods (#2730)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-05 20:28:00 -08:00
Bogdan Drutu 19c002471e
Move Span.Kind to the upper level as SpanKind (#2646)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 12:27:54 -08:00
Bogdan Drutu 301a29d7a3
Move labels outside of the stable package (#2647)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-02-02 10:24:06 -08:00