@opentelemetry/api
Advanced tools
Comparing version 0.11.1-alpha.15 to 0.11.1-alpha.35
@@ -24,2 +24,3 @@ export * from './common/Exception'; | ||
export * from './trace/link'; | ||
export * from './trace/NoopLogger'; | ||
export * from './trace/NoopSpan'; | ||
@@ -43,3 +44,3 @@ export * from './trace/NoopTracer'; | ||
export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/spancontext-utils'; | ||
export { Context } from '@opentelemetry/context-base'; | ||
export { Context, ROOT_CONTEXT, createContextKey, ContextManager, } from '@opentelemetry/context-base'; | ||
import { ContextAPI } from './api/context'; | ||
@@ -46,0 +47,0 @@ /** Entrypoint for context API */ |
@@ -52,2 +52,3 @@ "use strict"; | ||
__exportStar(require("./trace/link"), exports); | ||
__exportStar(require("./trace/NoopLogger"), exports); | ||
__exportStar(require("./trace/NoopSpan"), exports); | ||
@@ -75,3 +76,4 @@ __exportStar(require("./trace/NoopTracer"), exports); | ||
var context_base_1 = require("@opentelemetry/context-base"); | ||
Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return context_base_1.Context; } }); | ||
Object.defineProperty(exports, "ROOT_CONTEXT", { enumerable: true, get: function () { return context_base_1.ROOT_CONTEXT; } }); | ||
Object.defineProperty(exports, "createContextKey", { enumerable: true, get: function () { return context_base_1.createContextKey; } }); | ||
var context_1 = require("./api/context"); | ||
@@ -78,0 +80,0 @@ /** Entrypoint for context API */ |
export interface Attributes { | ||
[attributeKey: string]: unknown; | ||
[attributeKey: string]: AttributeValue | undefined; | ||
} | ||
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>; | ||
//# sourceMappingURL=attributes.d.ts.map |
"use strict"; | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=attributes.js.map |
@@ -1,2 +0,1 @@ | ||
import { TraceFlags } from './trace_flags'; | ||
import { TraceState } from './trace_state'; | ||
@@ -33,5 +32,5 @@ /** | ||
* | ||
* SAMPLED = 0x1 and NONE = 0x0; | ||
* see {@link TraceFlags} for valid flag values. | ||
*/ | ||
traceFlags: TraceFlags; | ||
traceFlags: number; | ||
/** | ||
@@ -38,0 +37,0 @@ * Tracing-system-specific info to propagate. |
import { Exception } from '../common/Exception'; | ||
import { Attributes } from './attributes'; | ||
import { TimeInput } from '../common/Time'; | ||
import { Attributes, AttributeValue } from './attributes'; | ||
import { SpanContext } from './span_context'; | ||
import { Status } from './status'; | ||
import { TimeInput } from '../common/Time'; | ||
/** | ||
@@ -34,3 +34,3 @@ * An interface that represents a span. A span represents a single operation | ||
*/ | ||
setAttribute(key: string, value: unknown): this; | ||
setAttribute(key: string, value?: AttributeValue): this; | ||
/** | ||
@@ -37,0 +37,0 @@ * Sets attributes to the span. |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.11.1-alpha.15+e170039"; | ||
export declare const VERSION = "0.11.1-alpha.35+c6c993bb"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.11.1-alpha.15+e170039'; | ||
exports.VERSION = '0.11.1-alpha.35+c6c993bb'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api", | ||
"version": "0.11.1-alpha.15+e170039", | ||
"version": "0.11.1-alpha.35+c6c993bb", | ||
"description": "Public API for OpenTelemetry", | ||
@@ -81,3 +81,3 @@ "main": "build/src/index.js", | ||
}, | ||
"gitHead": "e170039015e8a1a7419bb835a00659b2a734b8a6" | ||
"gitHead": "c6c993bb16c58ba907337a5667da01b3c248e350" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
188995
165
3426