72 Commits

Author SHA1 Message Date
Joe DiPol
437fbd730d Update version to 2.1.1-SNAPSHOT (#2462) 2020-10-16 15:37:23 -07:00
Joe DiPol
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Tim Quinn
a554d67a57 Add support for MP Metrics 2.3 (#2245) 2020-08-12 15:50:34 -05:00
Tim Quinn
cbb88d8d82 Fixes a few problems in metrics (#2240)
* Add non-public method to retrieve MetricID/HelidonMetric pairs given a name

* Make sure TYPE is emitted to Prometheus/OpenMetrics output only when requested

* Fix behavior of /metrics/registryName/metricName to report all matching metrics

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-08-07 14:55:44 -05:00
Tim Quinn
9db48afd1c Missing metric (#2235)
* Fix NPE when removing a non-existent metric; add tests for removal

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-08-05 10:32:23 -05:00
Tim Quinn
4108ba263d Remove FinalRegistry and its use for the base registry; part of moving to MP metrics 2.3 (#2188)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-07-21 12:51:02 -05:00
Joe DiPol
0bb8d792da Bump version to 2.0.2-SNAPSHOT. Update CHANGELOG (#2111)
* Bump version to 2.0.2-SNAPSHOT Update CHANGELOG
2020-06-30 14:47:34 -07:00
Joe DiPol
8bbe29ecc8 2.0: Update version to 2.0.1-SNAPSHOT. Update CHANGELOG (#2082)
* Update CHANGELOG.md after 2.0.0 release

* Update version to 2.0.1-SNAPSHOT
2020-06-23 11:32:04 -07:00
Romain Grecourt
f0c0610803 Fluent API for explicit media reader and writer usages. (#2010)
* Fluent API for explicit media reader and writer usages.

* update javadocs

* update javadocs

* support stream reader/writer

* update javadocs

* Update HealthSupport and MetricsSupport to use the new API

* fix checkstyle errors

* rename internal constant FEATURE_NAME to SERVICE_NAME is both HealthSupport and MetricsSupport

* Update FileSystemContentHandler.send to use the new API
2020-06-18 13:11:33 -07:00
Tomas Langer
4abd0a3cd6 Feature refactoring (#1944)
* Features simplification.
* Added  excludes
* Moved initialization of log to native image extension
* Log statements for unsupported features in native image

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 18:21:24 +02:00
Tim Quinn
b74b3cbde7 Add tolerance to many tests; widen the tolerance used during pipeline runs (#1999)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2020-06-15 10:03:04 -05:00
Aleks Seovic
a0c8d7e8c3 Minor gRPC 2.0 fixes and improvements (#1959) 2020-06-10 08:14:06 -05:00
Tim Quinn
cfae9e2de2 Revert "Minor gRPC fixes (2.0) (#1951)" (#1956)
This reverts commit c30057f99d.
2020-06-09 17:06:28 -05:00
Aleks Seovic
c30057f99d Minor gRPC fixes (2.0) (#1951) 2020-06-09 13:21:02 -05:00
David Král
f7d90a8e3d Media support methods (#1905)
* Get method removed from MessageBodyOperators
* JSON-P support changed
* JSON-B support changed
* Jackson support changed
* Default support builder added

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-06-01 18:43:35 +02:00
David Král
a72e9262f8 Media support flattening (#1899)
Flattening of the media support structure
Fix for not checking of the context parent when searching for operator

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-05-29 16:52:39 +02:00
Tomas Langer
8185c08069 Removed deprecations (#1892)
- Removed deprecated methods
- Updated deprecated comments to clearly mark 2.0.0 deprecations
2020-05-29 11:17:43 +02:00
Tim Quinn
49e2bd7fe9 Remove MP Metrics 1.0-to-2.0 bridge component and related classes in other components (#1879) 2020-05-27 11:58:17 -05:00
Tomas Langer
81c3ecb39b Removes mp-test-libs bundle (#1813)
* Update maven dependency plugin to support dependency:analyze with Java 11
* Remove internal-test-libs 

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-05-18 22:07:48 +02:00
Tomas Langer
7d2f70897f MP Config fixes (#1721)
MP Config implementation to correctly support mutable config sources.
2020-05-06 11:44:31 +02:00
Tim Quinn
c434278951 Add CORS support to built-in Helidon services (#1670) 2020-04-24 07:36:01 -05:00
Tim Quinn
ab648141a3 Improve metrics interceptor performance; avoid MetricID creations - 2.x (#1602)
* For performance, avoid creating MetricID instances repeatedly when looking up the metric associated with each call to an intercepted call; instead, cache the metric with each annotation site
2020-03-31 15:36:55 -05:00
Santiago Pericasgeertsen
1d432b8103 Removed unnecessary synchronization. Clarified in comments where synchronization is needed. A few other minor updates. (#1575)
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-03-24 16:42:32 -04:00
Santiago Pericasgeertsen
2d64fccb79 Prometheus format problems (#1427) Do not repeat LINE and HELP lines in Prometheus format as this is a violation that can be flagged by tools with validation enabled. This can happen for metrics with same name and different tags. We now keep track of TYPE and HELP lines added to format to avoid repetition. (#1440) 2020-02-25 08:09:25 -05:00
Tomas Langer
bdcc64eb77 Checkstyle upgrade (#1340)
* Missing files from mp1 integration test.

* Upgrade checkstyle to 8.29 and update plugin + fix issues.
2020-02-04 11:40:16 +01:00
Joe DiPol
e25fdd4774 Update version to 2.0.0-SNAPSHOT. update-version now edits build.grad… (#1348)
* Update version to 2.0.0-SNAPSHOT. update-version now edits build.gradle file
2020-02-03 22:23:42 -08:00
Tomas Langer
6375428deb Helidon Features.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-16 11:35:49 +01:00
Tomas Langer
76b8fbee89 Helidon MP revamped for native-image
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Work around issues with the reduced pom created by maven-shade-plugin.
See https://issues.apache.org/jira/browse/MNG-5899

Inline the reduced dependencies in the original pom.
Turn-off reduced pom generation.

Update microprofile/weld/pom.xml

Build fixes after repackaging weld.

Build fix - spotbugs exclude missing.

Simplify build and runtime events.

Using predefined priorities.

Validations for all modules in test.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-13 23:40:30 +01:00
Tomas Langer
8ae046ecf9 Update to Java 11 APIs (#1232)
* Remove OptionalHelper and replace with Optional methods.
* Remove CollectionsHelper and replace with Set, Map and List methods.
* Replaced `InputStreamHelper` with method of `InputStream`
* Replaced Helidon `StackWalker` with the one from Java
* Updated CHANGELOG.md
* Added an exclude for spotbugs to work around
    https://github.com/spotbugs/spotbugs/issues/756

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-17 20:33:51 +01:00
Tomas Langer
31365ec5d9 Using Flow API from Java, removed Flow from reactive module.
See #1220

Javadoc no longer fails the build. See #1223 as a follow up issue.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-13 21:48:06 +01:00
Tomas Langer
5bfcff2b68 Java 11 as the minimal version (#1187)
* Java 11 as the minimal version

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Use release 8 for javadoc.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-10 10:02:05 +01:00
Joe DiPol
eb999f5c56 Update version to 2.0-SNAPSHOT (#1167) 2019-11-23 13:44:00 +01:00
Aleks Seovic
64f5ea8b63 Support for mutable vendor registry (#1098)
* Support for mutable vendor registry.

* Support for mutable vendor registry.
2019-10-16 19:41:07 +02:00
Tim Quinn
77ab6091c4 Brings our 1.1 and 2.0 impls in line with clarification of metric reuse (#1080)
MP metrics reusability spec clarification: should apply only to annotations
2019-10-04 09:40:04 -05:00
Tim Quinn
fef197b77c Change visibility and/or suppress JavaDoc for items that users do not/should not use themselves (#1075) 2019-10-02 13:37:31 -05:00
Tim Quinn
88b44f069a Rationalize some metrics 1.1 and 2.0 support code; add sync to both impls (#1071)
* Add sync to registry methods for thread safeness

* Remove 'flexible' field from HelidonMetadata and associated uses; bring MetricProducer and Registry more in line with the metrics/metrics counterparts; add synchronization to metrics 1.1 and 2.0 support
2019-09-30 08:59:31 -05:00
Joe DiPol
3994b8e730 Update version to 1.3.2-SNAPSHOT. Update CHANGELOG.md (#1068) 2019-09-27 17:37:34 -07:00
Tim Quinn
42d010ece6 Allow config to disable all base metrics easily (#1052)
* Support disabling base metrics via config metrics.base.enabled=false
2019-09-25 10:28:45 -05:00
Tim Quinn
719aa163f0 Fully enforce reusability in MP Metrics 1.1. support (#1048)
* Fix for incomplete reusability enforcement in MP Metrics 1.1. support
2019-09-23 16:09:49 -05:00
Romain Grecourt
714da393c3 Add exclusions for org.osgi:org.osgi.annotation.versioning (#1034)
Fixes #1028
2019-09-13 17:44:20 -07:00
Joe DiPol
de805c92ea Fixes from 1.3.0 release branch and version update (#1027)
* Fix release.sh update-version to work with new parent pom hierarchy

* Update CHANGELOG for 1.3.0 release

* fix release script to deal with maven timestamps

* Update graal tests to work with new parent pom hierarchy

* Update release.sh to set helidon.version correctly

* Move gpg plugin management and execution for the release profile under parent/pom.xml
Move nexus plugin extension for the release profile under parent/pom.xml
Move the staging profile under parent/pom.xml
Added missing snapshot repository under distribution management in parent/pom.xml

* Fixes #1024 - Bad build time subsitution for bare archetypes pom
Fixes #1025 - archetype-packaging plugin needs to be declared as an extension
Reverting dependencies on helidon-metrics2 back helidon-metrics for all SE examples
Removing helidon-metrics2 from the BOM pom to prevent end-user from using it
Update examples/grpc/metrics README to fix test step.

* Update version to 1.3.1-SNAPSHOT
2019-09-13 13:17:44 -07:00
Romain Grecourt
0f6403374f Application poms (#1022)
Create a new parent pom hierarchy to fit new applications-pom
Updated all examples to use the new application-poms
Normalized examples README.md
Updated examples Dockerfile to multi-stage
Remove dependency management for microprofile-metrics-api and leverage the transitive dependencies of helidon-metrics and helidon-metrics2.
2019-09-12 15:48:09 -07:00
Tim Quinn
e6514b6877 Add some resiliency to various metrics tests (#1016)
Add some resiliency to various metrics tests to account for variability in the pipeline environment
2019-09-11 13:49:24 -05:00
Tim Quinn
7708105a22 Support for MP Metrics 2.0 (#992)
Add support for Microprofile Metrics 2.0, including a Helidon metrics compatibility layer which allows some existing metrics 1.1 clients to run without change using  this Helidon release (which uses metrics 2.0).
2019-09-10 15:39:19 -05:00
Joe DiPol
a152dd5914 Update version to 1.2.2-SNAPSHOT. Update CHANGELOG (#937) 2019-08-21 18:23:50 -07:00
Joe DiPol
153ab91cd1 Update version to 1.2.1-SNAPSHOT (#869) 2019-07-30 16:29:07 -07:00
Joe DiPol
856942a256 Change version to 1.2.0-SNAPSHOT (#855) 2019-07-24 09:48:56 -07:00
Tomas Langer
ac604c0eb2 Tracing configuration module. (#809)
* Tracing configuration module.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Register tracer as global tracer, configurable.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Tracing configuration for web server.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Using tracing configuration, root span delegated to TracingConfiguration.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Integration common module with tracing helpers.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Using common tracing helpers in gRPC security integration

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Using common tracing helpers in webserver and Jersey security integration

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Using tracing configuration

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Using tracing configuration

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Fixed visibility in Contexts.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Refactored metrics context handler to a separate class.
Better visibility in Tracing.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Common security integration module in bom pom.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Refactoring based on review comments.
Using WebTracingConfig and GrpcTracingConfig instead of TracingConfiguration
Using a classified instance for SpanContext in context
Using a constant for tracing component name in jax-rs

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Build fixes for tracing

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Outbound security span now child of outbound jersey call.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Review fixes - remove the word environment.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-06-28 17:56:10 +02:00
Tomas Langer
e2d2a03130 Upgrade Jersey to 2.29 (#813)
* Test with Jersey Release Candidate.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Fixes for update to Jersey RC

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Excluded hk2 jakarta.inject

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Copyright fixes

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Upgrade to Jersey 2.29 released version

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Upgrade to Jersey 2.29 released version

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Force updates to try fix issue with socket reset

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Modules for jersey to exclude jakarta and include javax

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* module-info fixes for json and health

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Copyright fixes

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Spotbugs fix

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Jersey dependency fix

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Better assertion to troubleshoot test failures.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-06-27 13:40:34 +02:00
Joe Di Pol
b2de53d943 Update version to 1.1.3-SNAPSHOT 2019-06-14 17:15:52 -07:00