Skip to content

Commit

Permalink
Merge branch 'ecosystem-vendors-tracetest' of github.com:adnanrahic/o…
Browse files Browse the repository at this point in the history
…pentelemetry.io into ecosystem-vendors-tracetest
  • Loading branch information
adnanrahic committed Dec 11, 2023
2 parents f5292fc + 47fb57a commit 7926914
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 1 deletion.
6 changes: 6 additions & 0 deletions content/en/docs/concepts/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ transverses process, network and security boundaries.

More on Distributed Tracing [here][distributed tracing].

### **Distribution**

A distribution is a wrapper around an upstream OpenTelemetry repository with
some customizations. See [more][distribution].

### **Event**

Something that happened where representation depends on the
Expand Down Expand Up @@ -338,6 +343,7 @@ on web pages when requested. See [more][zpages].
[context propagation]: /docs/specs/otel/overview#context-propagation
[dag]: https://en.wikipedia.org/wiki/Directed_acyclic_graph
[distributed tracing]: /docs/concepts/signals/traces/
[distribution]: /docs/concepts/distributions/
[field]: /docs/specs/otel/logs/data-model#field-kinds
[http]: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
[json]: https://en.wikipedia.org/wiki/JSON
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/instrumentation/java/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases: [/java, /java/metrics, /java/tracing]
cascade:
vers:
instrumentation: 1.32.0
otel: 1.32.0
otel: 1.33.0
semconv: 1.23.1
weight: 18
---
Expand Down
21 changes: 21 additions & 0 deletions content/en/docs/instrumentation/net/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ code:
```csharp
using System.Globalization;

using Microsoft.AspNetCore.Mvc;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

Expand All @@ -65,6 +67,11 @@ string HandleRollDice([FromServices]ILogger<Program> logger, string? player)
return result.ToString(CultureInfo.InvariantCulture);
}

int RollDice()
{
return Random.Shared.Next(1, 7);
}

app.MapGet("/rolldice/{player?}", HandleRollDice);

app.Run();
Expand Down Expand Up @@ -114,7 +121,21 @@ that will generate the telemetry, and set them up.

2. Setup the OpenTelemetry code

In Program.cs, replace the following lines:

```csharp
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
```

With:

```csharp
using OpenTelemetry.Logs;
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

var builder = WebApplication.CreateBuilder(args);

const string serviceName = "roll-dice";
Expand Down
4 changes: 4 additions & 0 deletions content/en/docs/security/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Security
weight: 150
---
74 changes: 74 additions & 0 deletions content/en/docs/security/cve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
title: Common Vulnerabilities and Exposures
weight: 102
---

This is a list of reported Common Vulnerabilities and Exposures (CVEs) across
all repositories in the
[OpenTelemetry organization on GitHub](https://github.com/open-telemetry/). The
raw data is stored in the
[sig-security](https://github.com/open-telemetry/sig-security) repository, and
it is refreshed daily.

<table id="cve-table">
<thead>
<tr>
<th>CVE ID</th>
<th>Issue Summary</th>
<th>Severity</th>
<th>Repository</th>
</tr>
</thead>
<tbody>
</tbody>
</table>

<script id="main-script">
'use strict';
(function() {
function fetchAndRender() {
fetchData()
.then(renderTable);
}

function fetchData() {
var url = 'https://raw.githubusercontent.com/open-telemetry/sig-security/data-source/published_output.json';
return fetch(url)
.then(function(response) {
return response.json();
});
}

function renderTable(data) {
var table = document.getElementById('cve-table').querySelector('tbody');

data.sort((a, b) => new Date(b.created_at) - new Date(a.created_at));

data.forEach(item => {
var row = table.insertRow();

const cell1 = row.insertCell(0);
const link = document.createElement('a');
link.href = item['html_url'];
link.target = '_blank';
link.textContent = item['cve_id'];
cell1.appendChild(link);

const cell2 = row.insertCell(1);
cell2.textContent = item['summary'];
const cell3 = row.insertCell(2);
cell3.textContent = item['severity'];

const cell4 = row.insertCell(3);
// cell4.textContent = item['repo'];
const link2 = document.createElement('a');
link2.href = 'https://www.github.com/open-telemetry/' + item['repo'] + '/security/advisories';
link2.target = '_blank';
link2.textContent = item['repo'];
cell4.appendChild(link2);
});
}

fetchAndRender();
})();
</script>
8 changes: 8 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -2551,6 +2551,10 @@
"StatusCode": 200,
"LastSeen": "2023-06-30T08:31:22.656334-04:00"
},
"https://github.com/open-telemetry/": {
"StatusCode": 200,
"LastSeen": "2023-12-08T15:19:55.887939-08:00"
},
"https://github.com/open-telemetry/community": {
"StatusCode": 200,
"LastSeen": "2023-06-30T09:28:03.502113-04:00"
Expand Down Expand Up @@ -3723,6 +3727,10 @@
"StatusCode": 200,
"LastSeen": "2023-11-03T20:22:42.689401141Z"
},
"https://github.com/open-telemetry/sig-security": {
"StatusCode": 200,
"LastSeen": "2023-12-07T16:14:09.891942-08:00"
},
"https://github.com/opentracing": {
"StatusCode": 200,
"LastSeen": "2023-06-30T08:40:39.909083-04:00"
Expand Down

0 comments on commit 7926914

Please sign in to comment.