Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update and fix tracer-web examples #2660

Closed
wants to merge 1 commit into from
Closed

Conversation

MSNev
Copy link
Contributor

@MSNev MSNev commented Dec 9, 2021

fix: Lint issues

Updating to package versions

  • webpack to v5
  • sdk-trace-xxx to v1.0.1
  • instrumentation to v0.27.0
  • exporters to v0.27.0

And adds a few additional examples and execution modes to help identify how to use and the resulting bundles sizes based on different configurations

@MSNev MSNev requested a review from a team December 9, 2021 17:35
const getData = (url) => fetch(url, {
method: 'GET',
headers: {
'Accept': 'application/json',
Accept: 'application/json',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an auto lint fix

"description": "Example of using @opentelemetry/sdk-trace-web in browser",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server -d --progress --colors --port 8090 --config webpack.config.js --hot --inline --host 0.0.0.0 --content-base examples"
"start": "webpack serve --progress --color --port 8090 --config webpack.dev.config.js --hot --host 0.0.0.0 --compress",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the previous command line arguments don't work with v5 webpack, specifically the "-d" is the devtool mode, when not passing anything it fails to start.

@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #2660 (0994868) into main (a35f093) will not change coverage.
The diff coverage is n/a.

❗ Current head 0994868 differs from pull request most recent head 774346a. Consider uploading reports for the commit 774346a to get more accurate results

@@           Coverage Diff           @@
##             main    #2660   +/-   ##
=======================================
  Coverage   93.36%   93.36%           
=======================================
  Files         131      131           
  Lines        4932     4932           
  Branches     1078     1078           
=======================================
  Hits         4605     4605           
  Misses        327      327           

"@opentelemetry/sdk-metrics-base": "0.27.0",
"@opentelemetry/semantic-conventions": "^1.0.1",
"@opentelemetry/propagator-b3": "1.0.1",
"@opentelemetry/resources": "^1.0.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing devDependency picked up by linting

"@opentelemetry/exporter-metrics-otlp-http": "0.27.0",
"@opentelemetry/exporter-zipkin": "1.0.1",
"@opentelemetry/sdk-metrics-base": "0.27.0",
"@opentelemetry/semantic-conventions": "^1.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing devDependency picked up by linting

@MSNev
Copy link
Contributor Author

MSNev commented Dec 9, 2021

Going to abandon this PR as I created this against main (with my own branch) -- going to move to a fork and resubmit as the branch protection rules are blocking a follow up update to the markdown linting issues -- be back soon 😄

@MSNev MSNev closed this Dec 9, 2021
@dyladan
Copy link
Member

dyladan commented Dec 9, 2021

Going to abandon this PR as I created this against main (with my own branch) -- going to move to a fork and resubmit as the branch protection rules are blocking a follow up update to the markdown linting issues -- be back soon 😄

this bites me occasionally as well. In a fun twist, you can't delete the branch either without jumping through hoops and having admin access.

@MSNev
Copy link
Contributor Author

MSNev commented Dec 9, 2021

Replacement PR #2661

@dyladan dyladan deleted the MSNev/WebExamples branch December 22, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants