Skip to content

Commit

Permalink
Revert "pushing test branch from otel-js"
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDanielson authored Aug 14, 2024
1 parent 1821353 commit 6ea85fd
Show file tree
Hide file tree
Showing 214 changed files with 8,595 additions and 5,369 deletions.
14 changes: 0 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/op
### :house: (Internal)

* refactor: Simplify the code for the `getEnv` function [#4799](https://github.com/open-telemetry/opentelemetry-js/pull/4799) @danstarns
* refactor: remove "export *" in favor of explicit named exports [#4880](https://github.com/open-telemetry/opentelemetry-js/pull/4880) @robbkidd
* Packages updated:
* opentelemetry-context-zone
* opentelemetry-core
* opentelemetry-exporter-jaeger
* opentelemetry-exporter-zipkin
* opentelemetry-propagator-b3
* opentelemetry-propagator-jaeger
* opentelemetry-sdk-trace-base
* opentelemetry-sdk-trace-node
* opentelemetry-sdk-trace-web
* propagator-aws-xray
* sdk-metrics
* deps(sdk-metrics): remove unused lodash.merge dependency [#4905](https://github.com/open-telemetry/opentelemetry-js/pull/4905) @pichlermarc

## 1.25.1

Expand Down
2 changes: 0 additions & 2 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ All notable changes to this project will be documented in this file.

### :house: (Internal)

* refactor(api): remove "export *" in favor of explicit named exports [#4880](https://github.com/open-telemetry/opentelemetry-js/pull/4880) @robbkidd

## 1.9.0

### :rocket: (Enhancement)
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"karma-webpack": "5.0.1",
"lerna": "6.6.2",
"memfs": "3.5.3",
"mocha": "10.7.3",
"mocha": "10.2.0",
"nyc": "15.1.0",
"sinon": "15.1.2",
"ts-loader": "9.5.1",
Expand Down
2 changes: 0 additions & 2 deletions api/src/api/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const NOOP_CONTEXT_MANAGER = new NoopContextManager();

/**
* Singleton object which represents the entry point to the OpenTelemetry Context API
*
* @since 1.0.0
*/
export class ContextAPI {
private static _instance?: ContextAPI;
Expand Down
2 changes: 0 additions & 2 deletions api/src/api/diag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ const API_NAME = 'diag';
/**
* Singleton object which represents the entry point to the OpenTelemetry internal
* diagnostic API
*
* @since 1.0.0
*/
export class DiagAPI implements DiagLogger, DiagLoggerApi {
private static _instance?: DiagAPI;
Expand Down
2 changes: 0 additions & 2 deletions api/src/api/propagation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ const NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();

/**
* Singleton object which represents the entry point to the OpenTelemetry Propagation API
*
* @since 1.0.0
*/
export class PropagationAPI {
private static _instance?: PropagationAPI;
Expand Down
2 changes: 0 additions & 2 deletions api/src/api/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ const API_NAME = 'trace';

/**
* Singleton object which represents the entry point to the OpenTelemetry Tracing API
*
* @since 1.0.0
*/
export class TraceAPI {
private static _instance?: TraceAPI;
Expand Down
7 changes: 0 additions & 7 deletions api/src/baggage/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ import { baggageEntryMetadataSymbol } from './internal/symbol';
* limitations under the License.
*/

/**
* @since 1.0.0
*/
export interface BaggageEntry {
/** `String` value of the `BaggageEntry`. */
value: string;
Expand All @@ -48,8 +45,6 @@ export interface BaggageEntry {
/**
* Serializable Metadata defined by the W3C baggage specification.
* It currently has no special meaning defined by the OpenTelemetry or W3C.
*
* @since 1.0.0
*/
export type BaggageEntryMetadata = { toString(): string } & {
__TYPE__: typeof baggageEntryMetadataSymbol;
Expand All @@ -59,8 +54,6 @@ export type BaggageEntryMetadata = { toString(): string } & {
* Baggage represents collection of key-value pairs with optional metadata.
* Each key of Baggage is associated with exactly one value.
* Baggage may be used to annotate and enrich telemetry data.
*
* @since 1.0.0
*/
export interface Baggage {
/**
Expand Down
1 change: 0 additions & 1 deletion api/src/baggage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export function createBaggage(
*
* @param str string metadata. Format is currently not defined by the spec and has no special meaning.
*
* @since 1.0.0
*/
export function baggageEntryMetadataFromString(
str: string
Expand Down
4 changes: 0 additions & 4 deletions api/src/common/Attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
* Attributes is a map from string to attribute values.
*
* Note: only the own enumerable keys are counted as valid attribute keys.
*
* @since 1.3.0
*/
export interface Attributes {
[attributeKey: string]: AttributeValue | undefined;
Expand All @@ -29,8 +27,6 @@ export interface Attributes {
* Attribute values may be any non-nullish primitive value except an object.
*
* null or undefined attribute values are invalid and will result in undefined behavior.
*
* @since 1.3.0
*/
export type AttributeValue =
| string
Expand Down
2 changes: 0 additions & 2 deletions api/src/common/Exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ interface ExceptionWithName {
* Defines Exception.
*
* string or an object with one of (message or name or code) and optional stack
*
* @since 1.0.0
*/
export type Exception =
| ExceptionWithCode
Expand Down
4 changes: 0 additions & 4 deletions api/src/common/Time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@
* The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds:
* HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
* This is represented in HrTime format as [1609504210, 150000000].
*
* @since 1.0.0
*/
export type HrTime = [number, number];

/**
* Defines TimeInput.
*
* hrtime, epoch milliseconds, performance.now() or Date
*
* @since 1.0.0
*/
export type TimeInput = HrTime | number | Date;
5 changes: 1 addition & 4 deletions api/src/context-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
import { ContextAPI } from './api/context';
/**
* Entrypoint for context API
* @since 1.0.0
*/
/** Entrypoint for context API */
export const context = ContextAPI.getInstance();
12 changes: 2 additions & 10 deletions api/src/context/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@

import { Context } from './types';

/**
* Get a key to uniquely identify a context value
*
* @since 1.0.0
*/
/** Get a key to uniquely identify a context value */
export function createContextKey(description: string) {
// The specification states that for the same input, multiple calls should
// return different keys. Due to the nature of the JS dependency management
Expand Down Expand Up @@ -85,9 +81,5 @@ class BaseContext implements Context {
public deleteValue!: (key: symbol) => Context;
}

/**
* The root context is used as the default parent context when there is no active context
*
* @since 1.0.0
*/
/** The root context is used as the default parent context when there is no active context */
export const ROOT_CONTEXT: Context = new BaseContext();
6 changes: 0 additions & 6 deletions api/src/context/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* limitations under the License.
*/

/**
* @since 1.0.0
*/
export interface Context {
/**
* Get a value from the context.
Expand All @@ -43,9 +40,6 @@ export interface Context {
deleteValue(key: symbol): Context;
}

/**
* @since 1.0.0
*/
export interface ContextManager {
/**
* Get the current active context
Expand Down
2 changes: 0 additions & 2 deletions api/src/diag-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ import { DiagAPI } from './api/diag';
* Defines Diagnostic handler used for internal diagnostic logging operations.
* The default provides a Noop DiagLogger implementation which may be changed via the
* diag.setLogger(logger: DiagLogger) function.
*
* @since 1.0.0
*/
export const diag = DiagAPI.instance();
2 changes: 0 additions & 2 deletions api/src/diag/consoleLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const consoleMap: { n: keyof DiagLogger; c: ConsoleMapKeys }[] = [
* A simple Immutable Console based diagnostic logger which will output any messages to the Console.
* If you want to limit the amount of logging to a specific level or lower use the
* {@link createLogLevelDiagLogger}
*
* @since 1.0.0
*/
export class DiagConsoleLogger implements DiagLogger {
constructor() {
Expand Down
10 changes: 0 additions & 10 deletions api/src/diag/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
* limitations under the License.
*/

/**
* @since 1.0.0
*/
export type DiagLogFunction = (message: string, ...args: unknown[]) => void;

/**
Expand All @@ -26,8 +23,6 @@ export type DiagLogFunction = (message: string, ...args: unknown[]) => void;
* - a No-Op {@link createNoopDiagLogger}
* - a {@link DiagLogLevel} filtering wrapper {@link createLogLevelDiagLogger}
* - a general Console {@link DiagConsoleLogger} version.
*
* @since 1.0.0
*/
export interface DiagLogger {
/** Log an error scenario that was not expected and caused the requested operation to fail. */
Expand Down Expand Up @@ -97,16 +92,11 @@ export enum DiagLogLevel {

/**
* Defines options for ComponentLogger
*
* @since 1.0.0
*/
export interface ComponentLoggerOptions {
namespace: string;
}

/**
* @since 1.4.1
*/
export interface DiagLoggerOptions {
/**
* The {@link DiagLogLevel} used to filter logs sent to the logger.
Expand Down
6 changes: 1 addition & 5 deletions api/src/metrics-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@
// Split module-level variable definition into separate files to allow
// tree-shaking on each api instance.
import { MetricsAPI } from './api/metrics';
/**
* Entrypoint for metrics API
*
* @since 1.3.0
*/
/** Entrypoint for metrics API */
export const metrics = MetricsAPI.getInstance();
4 changes: 0 additions & 4 deletions api/src/metrics/Meter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import {

/**
* An interface describes additional metadata of a meter.
*
* @since 1.3.0
*/
export interface MeterOptions {
/**
Expand All @@ -46,8 +44,6 @@ export interface MeterOptions {
* {@link Metric}s are used for recording pre-defined aggregation (`Counter`),
* or raw values (`Histogram`) in which the aggregation and attributes
* for the exported metric are deferred.
*
* @since 1.3.0
*/
export interface Meter {
/**
Expand Down
2 changes: 0 additions & 2 deletions api/src/metrics/MeterProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import { Meter, MeterOptions } from './Meter';

/**
* A registry for creating named {@link Meter}s.
*
* @since 1.3.0
*/
export interface MeterProvider {
/**
Expand Down
Loading

0 comments on commit 6ea85fd

Please sign in to comment.