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

2.0 Upgrade guide #3467

Merged
merged 26 commits into from
Mar 7, 2024
Merged

2.0 Upgrade guide #3467

merged 26 commits into from
Mar 7, 2024

Conversation

TonyCTHsu
Copy link
Contributor

@TonyCTHsu TonyCTHsu commented Feb 20, 2024

Upgrade Guide for 2.0

@github-actions github-actions bot added the docs Involves documentation label Feb 20, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.07%. Comparing base (5cb48c5) to head (494a667).
Report is 328 commits behind head on 2.0.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.0    #3467      +/-   ##
==========================================
- Coverage   98.13%   98.07%   -0.06%     
==========================================
  Files        1249     1237      -12     
  Lines       72086    72256     +170     
  Branches     3372     3411      +39     
==========================================
+ Hits        70741    70868     +127     
- Misses       1345     1388      +43     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch 2 times, most recently from 964cf52 to 6deb980 Compare February 26, 2024 14:58
@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from 6deb980 to 79cdd56 Compare February 27, 2024 11:00
@pr-commenter
Copy link

pr-commenter bot commented Feb 27, 2024

Benchmarks

Benchmark execution time: 2024-02-27 13:00:39

Comparing candidate commit 0705a03 in PR branch tonycthsu/2.0-upgrade-guide with baseline commit d24fd06 in branch 2.0.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 7 metrics, 1 unstable metrics.

@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from a36b138 to 0705a03 Compare February 27, 2024 12:56
@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from 8c8ccd0 to 674beb6 Compare February 28, 2024 13:47
@github-actions github-actions bot added core Involves Datadog core libraries integrations Involves tracing integrations tracing and removed docs Involves documentation core Involves Datadog core libraries labels Feb 29, 2024
@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from 278ce83 to 2ae288d Compare February 29, 2024 10:15
@github-actions github-actions bot added docs Involves documentation and removed tracing integrations Involves tracing integrations labels Feb 29, 2024
@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from 2ae288d to c0bcfcc Compare February 29, 2024 10:34
@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from c0bcfcc to 061cdbd Compare February 29, 2024 10:47
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
| ------------------------------ | ------------------------------------ |
| `DD_PROPAGATION_STYLE_INJECT` | `DD_TRACE_PROPAGATION_STYLE_INJECT` |
| `DD_PROPAGATION_STYLE_EXTRACT` | `DD_TRACE_PROPAGATION_STYLE_EXTRACT` |

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps it is my own ignorance on the topic, so feel free to ignore but it isn't clear to me why values becoming case-insensitive means the values mapped to different b3 strategies also changed? Since the values are case-insensitive, it isn't necessary to change existing ones?

docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
Copy link
Contributor

@ekump ekump left a comment

Choose a reason for hiding this comment

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

Some grammar suggestions, but LGTM.

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! I've left a bunch of notes. In general, I think the language of the doc would benefit from a pass of thinking "what does a customer upgrading need, and how should we convey that information".

Even as someone that works on the codebase, I had difficulty following some of the things being described -- they're a bit too terse for someone that doesn't live and breathe tracing ;)

docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Show resolved Hide resolved
| `2.1.x` | `>= 2.1.11, < 2.2` |
| `2.0.x` | `>= 2.0.28, < 2.1` |
| `1.13.x` | `>= 1.13.21, < 2.0` |
- Do **NOT** support or patch defined-based schema.
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean exactly?

docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved

<h4 id='2.0-instrumentation-rack'>Rack</h4>

- The type for `request_queuing` option is `Boolean`. When enabled, the behaviour changes from 1 span to 2 spans. The original `http_server.queue` span rename to `http.proxy.request`, with an additional `http.proxy.queue` span representing the time spent in a load balancer queue before reaching application.
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs clarification -- even for me it's a bit confusing, and I've been around the codebase for a while.

Comment on lines 472 to 482
Changing the name of the top-level span (`http_server.queue` -> `http.proxy.request`) would break a lot of stuff (monitors, dashboards, notebooks). The following snippet rename the top-level span back to help migration.

```ruby
Datadog::Tracing.before_flush(
Datadog::Tracing::Pipeline::SpanProcessor.new do |span|
if span.name == 'http.proxy.request'
span.name = 'http_server.queue'
end
end
)
```
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's clear what we're trying to warn customers/get across here.

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

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

Did an extra pass on profiling things :)

Comment on lines +9 to +15
- [Requires Ruby 2.5+](#2.0-requires-ruby-2.5+)
- [Extracts datadog-ci gem](#2.0-extracts-ci)
- [Configuration changes](#2.0-configuration-changes)
- [Replace `use` with `instrument`](#2.0-use-instrument)
- [Type checking](#2.0-type-checking)
- [Propagation default](#2.0-propagation-default)
- [Options](#2.0-options)
Copy link
Member

Choose a reason for hiding this comment

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

I believe the change in #3506 should be included in this list, as it will break a lot of customers running profiling

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would like to add the datadog rename afterward.

docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
docs/UpgradeGuide2.md Outdated Show resolved Hide resolved
Copy link
Contributor

@maycmlee maycmlee left a comment

Choose a reason for hiding this comment

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

👍 for docs.

By the way, I noticed that at the end of the Racecar section there's an extra character that doesn't seem to belong there.

@TonyCTHsu TonyCTHsu force-pushed the tonycthsu/2.0-upgrade-guide branch from e301b43 to 7699226 Compare March 7, 2024 15:33
@TonyCTHsu TonyCTHsu merged commit 81f5976 into 2.0 Mar 7, 2024
59 of 64 checks passed
@TonyCTHsu TonyCTHsu deleted the tonycthsu/2.0-upgrade-guide branch March 7, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 docs Involves documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants