-
Notifications
You must be signed in to change notification settings - Fork 1.2k
(DOCS-12521) Batch 3: Logs #32920
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
base: master
Are you sure you want to change the base?
(DOCS-12521) Batch 3: Logs #32920
Conversation
|
Editorial here: https://datadoghq.atlassian.net/browse/DOCS-12711 |
estherk15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for doing this Heston 🔥
| Datadog.initialize( | ||
| with: Datadog.Configuration( | ||
| clientToken: "<client token>", | ||
| env: "<environment>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work inside the tabs, it looks like this:
env: "<environment>",<span class="js-region-param region-param" data-region-param="ios_site_swift"></span>
You can break these out into separate sections like you did in content/en/logs/log_collection/android.md
| d=o.createElement(u);d.async=1;d.src=n | ||
| n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n) | ||
| })(window,document,'script','https://www.datadoghq-browser-agent.com/datadog-logs-v6.js','DD_LOGS') | ||
| })(window,document,'script','https://www.datadoghq-browser-agent.com/{{< region-param key=browser_logs_cdn_path >}}','DD_LOGS') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, the tabs break the formatting
You could list the parameter at the top of the section and use a placeholder for the code
| } | ||
| ``` | ||
| {{< /site-region >}} | ||
| ```kotlin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if it's a big deal, but in the original formatting, everything is aligned. The refactor isn't
.useSite(DatadogSite.EU1)
.trackCrashes(true)
.build()
vs.
.useSite(DatadogSite.EU1)
.trackCrashes(true)
.build()
What does this PR do?
Replaces repetition + site-region partials in the docs with region-params to make data center updates more efficient and maintenance easier. In some cases, this means removing tabs, as tabs and region-params don't work well together.
Outside of formatting, content shouldn't have changed.
Reviewing
The main aim here is cut down on duplication. I haven't made any content changes, so no grammar/style review is needed. When reviewing:
Merge instructions
Merge readiness: