Skip to content

Commit 0d45821

Browse files
[CI] Release Package (#68)
* ci: release package * chore: patch changelog * docs: regenerate api reference * chore: add knip json --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ivan Porto <iporto@adobe.com>
1 parent f1a95e9 commit 0d45821

35 files changed

+138
-68
lines changed

.changeset/add-versioning-policy.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/updated-otel-deps.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @adobe/aio-lib-telemetry
22

3+
## 1.1.1
4+
5+
### Patch Changes
6+
7+
- [`5542c99`](https://github.com/adobe/aio-lib-telemetry/commit/5542c993df9f8328e36fe67c0a16f0e17b9a9b1f) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Add [versioning policy](https://github.com/adobe/aio-lib-telemetry/blob/main/README.md#versioning-policy) to the README.
8+
9+
- [`d9b3f27`](https://github.com/adobe/aio-lib-telemetry/commit/d9b3f273af3b1ea79aae1aa34d237a0804b84fcb) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - [[BREAKING]](https://github.com/adobe/aio-lib-telemetry/blob/main/README.md#versioning-policy) Update OpenTelemetry dependencies (see the [Renovate PR](https://github.com/adobe/aio-lib-telemetry/pull/62) for the full list). The `otel` entrypoint no longer re-exports the `NoopLogRecordProcessor` class, as it's no longer exported by the OpenTelemetry Logs SDK. If you were using it, removing it should be safe, as it basically does nothing and it's the same as not using the processor at all.
10+
311
## 1.1.0
412

513
### Minor Changes

docs/api-reference/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import {
4040

4141
### OpenTelemetry API
4242

43-
OpenTelemetry features a modular architecture consisting of over 25 packages, which can make importing specific APIs rather complex. To streamline this process, our library offers a convenient "meta-package" import path. This allows you to import all the necessary OpenTelemetry APIs from a single source, simplifying the setup.
43+
OpenTelemetry features a modular architecture consisting of over 25 packages, which can make importing specific APIs rather complex. To streamline this process, our library offers a convenient "meta-package" [`otel` import path](_media/otel.ts). This allows you to import all the necessary OpenTelemetry APIs from a single source, simplifying the setup.
4444

4545
While this does not include every OpenTelemetry API, it covers the most common ones you will need in your code. If you find any essential APIs missing, feel free to open an issue or submit a PR. You can also import the APIs you need from the individual OpenTelemetry packages, but this is a convenient way to import all the APIs you need in a single import.
4646

docs/api-reference/_media/otel.ts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Copyright 2025 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
13+
// This file re-exports the most commonly used OpenTelemetry components.
14+
// It provides core APIs, SDKs, exporters, and resources while omitting
15+
// specialized packages like individual instrumentations and similar utilities.
16+
17+
/** biome-ignore-all lint/performance/noBarrelFile: This is the import entrypoint for the public API. */
18+
19+
export * from "@opentelemetry/api";
20+
export * from "@opentelemetry/api-logs";
21+
export { OTLPLogExporter as OTLPLogExporterGrpc } from "@opentelemetry/exporter-logs-otlp-grpc";
22+
export { OTLPLogExporter as OTLPLogExporterHttp } from "@opentelemetry/exporter-logs-otlp-http";
23+
export { OTLPLogExporter as OTLPLogExporterProto } from "@opentelemetry/exporter-logs-otlp-proto";
24+
export { OTLPMetricExporter as OTLPMetricExporterGrpc } from "@opentelemetry/exporter-metrics-otlp-grpc";
25+
export { OTLPMetricExporter as OTLPMetricExporterHttp } from "@opentelemetry/exporter-metrics-otlp-http";
26+
export { OTLPMetricExporter as OTLPMetricExporterProto } from "@opentelemetry/exporter-metrics-otlp-proto";
27+
export { OTLPTraceExporter as OTLPTraceExporterGrpc } from "@opentelemetry/exporter-trace-otlp-grpc";
28+
export { OTLPTraceExporter as OTLPTraceExporterHttp } from "@opentelemetry/exporter-trace-otlp-http";
29+
export { OTLPTraceExporter as OTLPTraceExporterProto } from "@opentelemetry/exporter-trace-otlp-proto";
30+
export * from "@opentelemetry/otlp-exporter-base";
31+
export * from "@opentelemetry/otlp-grpc-exporter-base";
32+
export * from "@opentelemetry/resources";
33+
export {
34+
BatchLogRecordProcessor,
35+
ConsoleLogRecordExporter,
36+
InMemoryLogRecordExporter,
37+
LoggerProvider,
38+
type SdkLogRecord,
39+
SimpleLogRecordProcessor,
40+
} from "@opentelemetry/sdk-logs";
41+
export {
42+
AggregationType,
43+
ConsoleMetricExporter,
44+
createAllowListAttributesProcessor,
45+
createDenyListAttributesProcessor,
46+
DataPointType,
47+
InMemoryMetricExporter,
48+
InstrumentType,
49+
MeterProvider,
50+
MetricReader,
51+
PeriodicExportingMetricReader,
52+
TimeoutError,
53+
} from "@opentelemetry/sdk-metrics";
54+
export {
55+
AlwaysOffSampler,
56+
AlwaysOnSampler,
57+
BasicTracerProvider,
58+
BatchSpanProcessor,
59+
ConsoleSpanExporter,
60+
InMemorySpanExporter,
61+
NodeTracerProvider,
62+
NoopSpanProcessor,
63+
ParentBasedSampler,
64+
RandomIdGenerator,
65+
SamplingDecision,
66+
SimpleSpanProcessor,
67+
TraceIdRatioBasedSampler,
68+
} from "@opentelemetry/sdk-trace-node";
69+
export * from "@opentelemetry/semantic-conventions";

docs/api-reference/functions/addEventToActiveSpan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function addEventToActiveSpan(event: string, attributes?: Attributes): void;
55
```
66

7-
Defined in: [api/global.ts:72](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/api/global.ts#L72)
7+
Defined in: [api/global.ts:72](https://github.com/adobe/aio-lib-telemetry/blob/317842f77a9a2210592cfbae768ca97d536e39af/source/api/global.ts#L72)
88

99
Adds an event to the given span.
1010

docs/api-reference/functions/defineMetrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function defineMetrics<T>(createMetrics: (meter: Meter) => T): T;
55
```
66

7-
Defined in: [core/metrics.ts:52](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/core/metrics.ts#L52)
7+
Defined in: [core/metrics.ts:52](https://github.com/adobe/aio-lib-telemetry/blob/317842f77a9a2210592cfbae768ca97d536e39af/source/core/metrics.ts#L52)
88

99
Helper to define a record of metrics.
1010

docs/api-reference/functions/defineTelemetryConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function defineTelemetryConfig(
1414
};
1515
```
1616

17-
Defined in: [core/config.ts:21](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/core/config.ts#L21)
17+
Defined in: [core/config.ts:21](https://github.com/adobe/aio-lib-telemetry/blob/317842f77a9a2210592cfbae768ca97d536e39af/source/core/config.ts#L21)
1818

1919
Helper to define the telemetry configuration for an entrypoint.
2020

docs/api-reference/functions/deserializeContextFromCarrier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function deserializeContextFromCarrier<Carrier>(
77
): Context;
88
```
99

10-
Defined in: [api/propagation.ts:61](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/api/propagation.ts#L61)
10+
Defined in: [api/propagation.ts:61](https://github.com/adobe/aio-lib-telemetry/blob/317842f77a9a2210592cfbae768ca97d536e39af/source/api/propagation.ts#L61)
1111

1212
Deserializes the context from a carrier and augments the given base context with it.
1313

docs/api-reference/functions/getActiveSpan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function getActiveSpan(ctx: Context): Span;
55
```
66

7-
Defined in: [api/global.ts:30](https://github.com/adobe/aio-lib-telemetry/blob/559503f2d0d79c50f3f552437165225cc1007a4f/source/api/global.ts#L30)
7+
Defined in: [api/global.ts:30](https://github.com/adobe/aio-lib-telemetry/blob/317842f77a9a2210592cfbae768ca97d536e39af/source/api/global.ts#L30)
88

99
Gets the active span from the given context.
1010

0 commit comments

Comments
 (0)