Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix(deps): update dependency @opencensus/propagation-stackdriver to v0.0.9#394

Merged
JustinBeckwith merged 2 commits intomasterfrom
renovate/opencensus-propagation-stackdriver-0.x
Feb 14, 2019
Merged

fix(deps): update dependency @opencensus/propagation-stackdriver to v0.0.9#394
JustinBeckwith merged 2 commits intomasterfrom
renovate/opencensus-propagation-stackdriver-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Feb 13, 2019

This PR contains the following updates:

Package Type Update Change References
@​opencensus/propagation-stackdriver dependencies patch 0.0.8 -> 0.0.9 source

Release Notes

census-instrumentation/opencensus-node

v0.0.9

Compare Source

  • Add Metrics API.

  • Add Resource API.

  • Add Tags API.

  • Add Gauges (DoubleGauge, LongGauge, DerivedDoubleGauge, DerivedLongGauge) APIs.

  • Add support for supplying instrumentation configuration via tracing option. Option argument added to instrumentation interface.

  • Add ignoreIncomingPaths and ignoreOutgoingUrls support to the http and https tracing instrumentations.

  • Add opencensus-resource-util to auto detect AWS, GCE and Kubernetes(K8S) monitored resource, based on the environment where the application is running.

  • Add optional uncompressedSize and compressedSize fields to MessageEvent interface.

  • Add a setStatus method in the Span.

  • OpenCensus Stackdriver Trace Exporter is updated to use Stackdriver Trace V2 APIs.

    This release has multiple breaking changes. Please test your code accordingly after upgrading.

  • Modify Logger interface: level made optional, silly removed.

  • The new Stats() has been deprecated on Stats class. The global singleton globalStats object should be used instead. Also, registerView() is separated out from createView().

  • Use TagKey, TagValue and TagMap to create the tag keys, tag values.

  • The status field on Span is no longer a number, use CanonicalCode instead.

  • Add enum type for MessageEvent, Link and SpanKind, instead of string.

Old code
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
});
New code
// 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);

Renovate configuration

📅 Schedule: "after 9am and before 3pm" (UTC).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2019
@renovate renovate Bot force-pushed the renovate/opencensus-propagation-stackdriver-0.x branch from 7ef844a to 820dcfc Compare February 13, 2019 19:51
@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 13, 2019
@renovate renovate Bot force-pushed the renovate/opencensus-propagation-stackdriver-0.x branch from 820dcfc to 515813f Compare February 14, 2019 17:25
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 14, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@6f5a175). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #394   +/-   ##
=========================================
  Coverage          ?   91.21%           
=========================================
  Files             ?       14           
  Lines             ?      615           
  Branches          ?       31           
=========================================
  Hits              ?      561           
  Misses            ?       36           
  Partials          ?       18

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f5a175...d3d006b. Read the comment docs.

@renovate renovate Bot force-pushed the renovate/opencensus-propagation-stackdriver-0.x branch from 515813f to 54385c8 Compare February 14, 2019 20:22
@renovate renovate Bot force-pushed the renovate/opencensus-propagation-stackdriver-0.x branch from 54385c8 to be12582 Compare February 14, 2019 20:29
@JustinBeckwith JustinBeckwith added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 14, 2019
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Feb 14, 2019

PR has been edited

👷 This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 14, 2019
@JustinBeckwith JustinBeckwith merged commit 8ac1602 into master Feb 14, 2019
@renovate renovate Bot deleted the renovate/opencensus-propagation-stackdriver-0.x branch February 14, 2019 21:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants