Skip to content

Commit 6f5d60e

Browse files
committed
suggested updates, logger, packages version, readme and example updates
1 parent fd3f619 commit 6f5d60e

File tree

14 files changed

+684
-451
lines changed

14 files changed

+684
-451
lines changed
Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Document Load Plugin Example</title>
6+
<base href="/" />
37

4-
<head>
5-
<meta charset="utf-8">
6-
<title>Document Load Plugin Example</title>
7-
<base href="/">
8-
9-
<!--
8+
<!--
109
https://www.w3.org/TR/trace-context/
1110
Set the `traceparent` in the server's HTML template code. It should be
1211
dynamically generated server side to have the server's request trace Id,
@@ -15,25 +14,24 @@
1514
(01 = sampled, 00 = notsampled).
1615
'{version}-{traceId}-{spanId}-{sampleDecision}'
1716
-->
18-
<!-- <meta name="traceparent" content="00-ab42124a3c573678d4d8b21ba52df3bf-d21f7bc17caa5aba-01">-->
19-
20-
<meta name="viewport" content="width=device-width, initial-scale=1">
21-
</head>
22-
23-
<body>
24-
Example of using Web Tracer with document load plugin with console exporter and collector exporter
25-
<script type="text/javascript" src="document-load.js"></script>
26-
<br/>
27-
<button id="button1">Test WebTracer with ZoneContextManager - async</button>
28-
<nav>
29-
<a href="document-load/route1" data-link>Route 1</a>
30-
<a href="document-load/route2" data-link>Route 2</a>
31-
</nav>
17+
<!-- <meta name="traceparent" content="00-ab42124a3c573678d4d8b21ba52df3bf-d21f7bc17caa5aba-01">-->
3218

33-
<div id="content">
34-
<!-- Content will be loaded here -->
35-
</div>
19+
<meta name="viewport" content="width=device-width, initial-scale=1" />
20+
</head>
3621

37-
</body>
22+
<body>
23+
Example of using Web Tracer with document load plugin with console exporter
24+
and collector exporter
25+
<script type="text/javascript" src="document-load.js"></script>
26+
<br />
27+
<button id="button1">Test WebTracer with ZoneContextManager - async</button>
28+
<nav>
29+
<a href="document-load/route1" data-link>Route 1</a>
30+
<a href="document-load/route2" data-link>Route 2</a>
31+
</nav>
3832

33+
<div id="content">
34+
<!-- Content will be loaded here -->
35+
</div>
36+
</body>
3937
</html>

examples/web/examples/index.html

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>OpenTelemetry Web Examples</title>
77
<style>
8-
body { font-family: Arial, sans-serif; margin: 40px; }
9-
h1 { color: #333; }
10-
ul { list-style-type: none; padding: 0; }
11-
li { margin: 10px 0; }
12-
a { text-decoration: none; color: #0066cc; font-size: 18px; }
13-
a:hover { text-decoration: underline; }
8+
body {
9+
font-family: Arial, sans-serif;
10+
margin: 40px;
11+
}
12+
h1 {
13+
color: #333;
14+
}
15+
ul {
16+
list-style-type: none;
17+
padding: 0;
18+
}
19+
li {
20+
margin: 10px 0;
21+
}
22+
a {
23+
text-decoration: none;
24+
color: #0066cc;
25+
font-size: 18px;
26+
}
27+
a:hover {
28+
text-decoration: underline;
29+
}
1430
</style>
15-
</head>
16-
<body>
31+
</head>
32+
<body>
1733
<h1>OpenTelemetry Web Examples</h1>
1834
<p>Choose an example to explore:</p>
1935
<ul>
20-
<li><a href="/document-load/">📄 Document Load Instrumentation</a></li>
21-
<li><a href="/navigation/">🧭 Navigation Instrumentation</a></li>
22-
<li><a href="/user-interaction/">👆 User Interaction Instrumentation</a></li>
23-
<li><a href="/meta/">🏷️ Meta Instrumentation</a></li>
36+
<li><a href="/document-load/">📄 Document Load Instrumentation</a></li>
37+
<li><a href="/navigation/">🧭 Navigation Instrumentation</a></li>
38+
<li>
39+
<a href="/user-interaction/">👆 User Interaction Instrumentation</a>
40+
</li>
41+
<li><a href="/meta/">🏷️ Meta Instrumentation</a></li>
2442
</ul>
25-
</body>
43+
</body>
2644
</html>
Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>User Interaction Example</title>
6+
<base href="/" />
37

4-
<head>
5-
<meta charset="utf-8">
6-
<title>User Interaction Example</title>
7-
<base href="/">
8-
9-
<!--
8+
<!--
109
https://www.w3.org/TR/trace-context/
1110
Set the `traceparent` in the server's HTML template code. It should be
1211
dynamically generated server side to have the server's request trace Id,
@@ -15,25 +14,24 @@
1514
(01 = sampled, 00 = notsampled).
1615
'{version}-{traceId}-{spanId}-{sampleDecision}'
1716
-->
18-
<!-- <meta name="traceparent" content="00-ab42124a3c573678d4d8b21ba52df3bf-d21f7bc17caa5aba-01">-->
19-
20-
<meta name="viewport" content="width=device-width, initial-scale=1">
21-
</head>
22-
23-
<body>
24-
Example of using Web Tracer with meta package and with console exporter and collector exporter
25-
<script type="text/javascript" src="meta.js"></script>
26-
<br/>
27-
<button id="btnAdd" class="btnAddClass">Add button</button>
28-
<div>
29-
<div></div>
30-
<div></div>
31-
<div></div>
32-
<div id="buttons"></div>
33-
<div></div>
34-
</div>
35-
<br/>
17+
<!-- <meta name="traceparent" content="00-ab42124a3c573678d4d8b21ba52df3bf-d21f7bc17caa5aba-01">-->
3618

37-
</body>
19+
<meta name="viewport" content="width=device-width, initial-scale=1" />
20+
</head>
3821

22+
<body>
23+
Example of using Web Tracer with meta package and with console exporter and
24+
collector exporter
25+
<script type="text/javascript" src="meta.js"></script>
26+
<br />
27+
<button id="btnAdd" class="btnAddClass">Add button</button>
28+
<div>
29+
<div></div>
30+
<div></div>
31+
<div></div>
32+
<div id="buttons"></div>
33+
<div></div>
34+
</div>
35+
<br />
36+
</body>
3937
</html>

0 commit comments

Comments
 (0)