Commit Graph

67 Commits

Author SHA1 Message Date
dependabot[bot] c31314c70b
Bump com.fasterxml.jackson:jackson-bom from 2.14.2 to 2.15.0 (#5398)
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-04-26 09:26:00 -05:00
jack-berg da38225135
Serialize observed timestamp (#5382) 2023-04-16 12:43:12 -05:00
jack-berg 0a34867a57
Rename setEpoch to setTimestamp (#5368) 2023-04-11 10:24:46 -05:00
jack-berg fcfbb32fcc
Logging OTLP sdk dependencies (#5291) 2023-03-29 15:43:17 -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 7f0889a6a3
Move autoconfigure exporter tests (#5051)
* Move SPI logging-otlp tests to :exporters:logging-otlp

* Move SPI zipkin tests to :exporters:zipkin

* Move SPI jaeger tests to :exporters:jaeger

* Spotless
2022-12-21 08:23:21 -06:00
jack-berg e79aad8dcd
Implement logging-otlp exporter providers (#4992) 2022-11-29 10:39:35 -06:00
jack-berg 5be58c5913
Encode enums as numbers in logging OTLP exporters (#4783) 2022-10-17 16:56:23 -05: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 198b2c2994
Serialize scope attributes in otlp marshalers (#4712) 2022-08-24 10:55:06 -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
Anuraag Agrawal fab0131184
Update OTLP to 0.15 (#4305) 2022-03-25 10:08:38 -05:00
jack-berg 21a61e5894
Change MetricExporter getPreferredTemporality to accept InstrumentType (#4288) 2022-03-24 11:25:50 -05:00
jack-berg ac884b12e1
Remove log name field (#4263) 2022-03-15 08:06:52 +09: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 048a0c8d14
Migrate PointData to interface (#4242) 2022-03-09 11:16:48 +09:00
Anuraag Agrawal a6107d5590
Remove type-specific SumData (#4216)
* Remove type-specific SumData

* scare
2022-03-02 08:40:21 +09:00
John Watson f7c52e181e
Update OTLP protobufs to v0.13.0-alpha (#4170)
and add documentation on how to update that dependency.
2022-02-12 10:33:38 -08:00
jack-berg 19b0fec813
Deprecate log name field (#4160)
* Deprecate log name field

* Add deprecation description to javadoc
2022-02-11 12:15:48 +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 044cadb47e
Reorganize internal export code. (#4111)
* Reorganize internal export code.

* Cleanups
2022-01-26 14:39:58 +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
Anuraag Agrawal 6623323491
Use same pattern of compileOnly SDK dependencies in exporter-common (#3776) 2021-10-20 10:54:49 -07:00
ohadza 9b9dcf9920
implement json log exporter (#3744) 2021-10-14 11:05:06 -07:00
Anuraag Agrawal fca5bbe36b
Write enum values by name in JSON. (#3621) 2021-09-16 10:03:28 +09:00
Anuraag Agrawal 0ae5e511a3
Use marshaler for json logging. (#3616) 2021-09-15 10:40:53 +09: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
Anuraag Agrawal 4dc139883d
Revert "Populate labels in addition to attributes for now on metrics. (#3397)" (#3537)
This reverts commit 5e6be2bb52.
2021-08-24 09:03:56 +09:00
Anuraag Agrawal 0da5038637
Make proto dependency in otlp-common compileOnly. (#3520) 2021-08-20 07:44:02 -07:00
Anuraag Agrawal ed680eb8e7
Use IdentityHashMap for grouping. (#3477)
* Use IdentityHashMap for grouping.

* TraceMarshaler

* Smaller map
2021-08-14 16:34:16 +09:00
Trask Stalnaker 60c3c5ca0c
Format build.gradle.kts files (#3427) 2021-07-29 13:21:38 +09:00
Anuraag Agrawal 5e6be2bb52
Populate labels in addition to attributes for now on metrics. (#3397)
* Populate labels in addition to attributes for now on metrics.

* meow

* Non-string keys
2021-07-15 09:21:47 +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