@opencensus/exporter-zpages
Advanced tools
Changelog
0.0.13 - 2019-05-20
This release has a breaking change. Please test your code accordingly after upgrading.
startChildSpan(nameOrOptions?: string|SpanOptions, kind?: SpanKind)
interface, now only SpanOptions
object interface is supported.Changelog
0.0.12 - 2019-05-13
defaultAttributes
config to Tracer.start(config)
DoubleCumulative
, LongCumulative
, , DerivedDoubleCumulative
, DerivedLongCumulative
) APIs.TracerBase
as a separate @opencensus/nodejs-base
package.This release has a breaking change. Please test your code accordingly after upgrading.
startChildSpan(name?: string, kind?: types.SpanKind)
interface// Multi argument interface
const span = tracer.startChildSpan('my-span', types.SpanKind.SERVER);
// Or options object interface
const span = tracer.startChildSpan({
name: 'my-span',
kind: types.SpanKind.SERVER
});
// Only options object interface is supported
const span = tracer.startChildSpan({
name: 'my-span',
kind: types.SpanKind.SERVER
});
Changelog
0.0.11 - 2019-04-08
Changelog
0.0.10 - 2019-04-03
compressedSize
and uncompressedSize
params to Span.addMessageEvent
tags
, status
and annotation
in Zipkin exporter.SpanOptions
) as an argument for startChildSpan
function, similar to startRootSpan
.ConfigStream
behavior from exporter-ocagent. This was unstable and is not currently supported by any other language instrumentation.55678
to match the default OC Agent port.--strictNullChecks
and --noUnusedLocals
Compiler Options on [opencensus-instrumentation-http], [opencensus-instrumentation-grpc] and [opencensus-propagation-tracecontext] packages.--strictNullChecks
and --noUnusedLocals
Compiler Options on [opencensus-exporter-zipkin] packages.--strictNullChecks
and --noUnusedLocals
Compiler Options on [opencensus-exporter-instana] package.globalStats.unregisterExporter()
.--strictNullChecks
and --noUnusedLocals
Compiler Options on [opencensus-exporter-jaeger] packages.TagMetadata
that defines the properties associated with a Tag
.--strictNullChecks
and --noUnusedLocals
Compiler Options on [opencensus-core] package.addMessageEvent()
. The field id
is now number instead of string.MetricOptions
to simplify all addXGauge.Changelog
0.0.9 - 2019-02-12
DoubleGauge
, LongGauge
, DerivedDoubleGauge
, DerivedLongGauge
) APIs.opencensus-resource-util
to auto detect AWS, GCE and Kubernetes(K8S) monitored resource, based on the environment where the application is running.uncompressedSize
and compressedSize
fields to MessageEvent
interface.setStatus
method in the Span.This release has multiple breaking changes. Please test your code accordingly after upgrading.
Logger
interface: level
made optional, silly
removed.new Stats()
has been deprecated on Stats class. The global singleton globalStats
object should be used instead. Also, registerView()
is separated out from createView()
.TagKey
, TagValue
and TagMap
to create the tag keys, tag values.status
field on Span
is no longer a number, use CanonicalCode
instead.MessageEvent
, Link
and SpanKind
, instead of string.const { Stats } = require("@opencensus/core");
const stats = new Stats();
// Counts/groups the lengths of lines read in.
const mLineLengths = stats.createMeasureInt64(
"demo/line_lengths",
MeasureUnit.BYTE,
"The distribution of line lengths"
);
// Create tag keys
const tagKeys = ["method", "status"];
// Create and register the view
stats.createView(
"demo/lines_in",
mLineLengths,
AggregationType.COUNT,
tagKeys,
"The number of lines from standard input"
);
// Records measurements
stats.record({
measure: mLineLengths,
tags,
value: 2
});
// Gets the global stats instance
const { globalStats } = require("@opencensus/core");
// Counts/groups the lengths of lines read in.
const mLineLengths = globalStats.createMeasureInt64(
"demo/line_lengths",
MeasureUnit.BYTE,
"The distribution of line lengths"
);
// Creates the method and status key
const methodKey = {name: "method"};
const statusKey = {name: "status"};
// Creates the view
const view = globalStats.createView(
"demo/lines_in",
mLineLengths,
AggregationType.COUNT,
[methodKey, statusKey],
"The number of lines from standard input"
);
// Registers the view
globalStats.registerView(view);
// Creates tags map -> key/value pair
const tagMap = new TagMap();
tagMap.set(methodKey, {value: 'REPL'});
tagMap.set(statusKey, {value: 'OK'});
// Creates measurements (measure + value)
const measurements = [{
measure: mLineLengths,
value: 2
}];
// Records measurement with tagMap
globalStats.record(measurements, tagMap);
Changelog
0.0.8 - 2018-12-14
Contains API breaking changes for stats/metrics implementations
--noUnusedLocals
Compiler Options on [opencensus-core] package.min
/max
in the stats Distribution to make it compatible with Metrics.Changelog
0.0.7 - 2018-11-12
Contains API breaking changes for stats/metrics implementations
Changelog
0.0.6 - 2018-10-25
Changelog
0.0.5 - 2018-10-19
Contains API breaking changes for stats/metrics implementations
Changelog
0.0.4 - 2018-08-29