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

📝 Update Readme for v3 cdn links #999

Merged
merged 2 commits into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ The browser SDK is used to collect logs and RUM data from the browser.

This repository contains several packages:

| Package | npm | size | cdn | doc |
| ---------------- | ------------------------ | ------------------------ | ---------------------- | ----------------------------------- |
| browser-logs | [![npm version][01]][02] | [![bundle size][03]][04] | [datadog-logs][05] | [![API][1]][07] [![product][2]][08] |
| browser-rum | [![npm version][11]][12] | [![bundle size][13]][14] | [datadog-rum][15] | [![API][1]][17] [![product][2]][18] |
| browser-rum-slim | [![npm version][21]][22] | [![bundle size][23]][24] | [datadog-rum-slim][25] | [![API][1]][27] [![product][2]][28] |
| browser-rum-core | [![npm version][51]][52] | [![bundle size][53]][54] | |
| browser-core | [![npm version][41]][42] | [![bundle size][43]][44] | |
| Package | npm | size | cdn | doc |
| ---------------- | ------------------------ | ------------------------ | ------------------------- | ----------------------------------- |
| browser-logs | [![npm version][01]][02] | [![bundle size][03]][04] | [datadog-logs-v3][05] | [![API][1]][07] [![product][2]][08] |
| browser-rum | [![npm version][11]][12] | [![bundle size][13]][14] | [datadog-rum-v3][15] | [![API][1]][17] [![product][2]][18] |
| browser-rum-slim | [![npm version][21]][22] | [![bundle size][23]][24] | [datadog-rum-slim-v3][25] | [![API][1]][27] [![product][2]][28] |
| browser-rum-core | [![npm version][51]][52] | [![bundle size][53]][54] | |
| browser-core | [![npm version][41]][42] | [![bundle size][43]][44] | |

[1]: https://github.githubassets.com/favicons/favicon.png
[2]: https://imgix.datadoghq.com/img/favicons/favicon-32x32.png
[01]: https://badge.fury.io/js/%40datadog%2Fbrowser-logs.svg
[02]: https://badge.fury.io/js/%40datadog%2Fbrowser-logs
[03]: https://badgen.net/bundlephobia/minzip/@datadog/browser-logs
[04]: https://bundlephobia.com/result?p=@datadog/browser-logs
[05]: https://www.datadoghq-browser-agent.com/datadog-logs.js
[05]: https://www.datadoghq-browser-agent.com/datadog-logs-v3.js
[07]: ./packages/logs/README.md
[08]: https://docs.datadoghq.com/logs/log_collection/javascript/?tab=npm
[11]: https://badge.fury.io/js/%40datadog%2Fbrowser-rum.svg
Expand Down
4 changes: 2 additions & 2 deletions packages/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Load and configure the SDK in the head section of your pages.
h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}
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.js','DD_LOGS')
})(window,document,'script','https://www.datadoghq-browser-agent.com/datadog-logs-v3.js','DD_LOGS')
DD_LOGS.onReady(function() {
DD_LOGS.init({
clientToken: 'XXX',
Expand All @@ -80,7 +80,7 @@ To receive all logs and errors, load and configure the SDK at the beginning of t
<html>
<head>
<title>Example to send logs to Datadog</title>
<script type="text/javascript" src="https://www.datadoghq-browser-agent.com/datadog-logs.js"></script>
<script type="text/javascript" src="https://www.datadoghq-browser-agent.com/datadog-logs-v3.js"></script>
<script>
window.DD_LOGS &&
DD_LOGS.init({
Expand Down