Skip to content

Commit 47ff8e0

Browse files
authored
Drop custom SCSS now provided by Docsy 0.7.2 (open-telemetry#3560)
1 parent b219195 commit 47ff8e0

File tree

11 files changed

+55
-63
lines changed

11 files changed

+55
-63
lines changed

assets/scss/_styles_project.scss

-8
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,6 @@ body.td-page--draft .td-content {
275275
}
276276
}
277277

278-
// TODO(@chalin): upstream
279-
.tab-body {
280-
> .highlight:only-child {
281-
margin: -1.5rem;
282-
max-width: calc(100% + 3rem);
283-
}
284-
}
285-
286278
details {
287279
margin-bottom: $paragraph-margin-bottom;
288280
}

content/en/docs/instrumentation/erlang/exporters.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Zipkin also run by [docker-compose](https://docs.docker.com/compose/).
2727
To export to the running Collector the `opentelemetry_exporter` package must be
2828
added to the project's dependencies:
2929

30-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
30+
{{< tabpane text=true >}} {{% tab Erlang %}}
3131

3232
```erlang
3333
{deps, [{opentelemetry_api, "~> {{% param versions.otelApi %}}"},
@@ -56,7 +56,7 @@ attempts to initialize and use the exporter.
5656
Example of Release configuration in `rebar.config` and for
5757
[mix's Release task](https://hexdocs.pm/mix/Mix.Tasks.Release.html):
5858

59-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
59+
{{< tabpane text=true >}} {{% tab Erlang %}}
6060

6161
```erlang
6262
%% rebar.config
@@ -94,7 +94,7 @@ the HTTP protocol with endpoint of `localhost` on port `4318`. If using `grpc`
9494
for the `otlp_protocol` the endpoint should be changed to
9595
`http://localhost:4317`.
9696

97-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
97+
{{< tabpane text=true >}} {{% tab Erlang %}}
9898

9999
```erlang
100100
%% config/sys.config.src

content/en/docs/instrumentation/erlang/getting-started.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ more telemetry backends.
304304
305305
To get started with this guide, create a new project with `rebar3` or `mix`:
306306
307-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
307+
{{< tabpane text=true >}} {{% tab Erlang %}}
308308
309309
```erlang
310310
rebar3 new release otel_getting_started
@@ -322,7 +322,7 @@ Then, in the project you just created, add both `opentelemetry_api` and
322322
`opentelemetry` as dependencies. We add both because this is a project we will
323323
run as a Release and export spans from.
324324
325-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
325+
{{< tabpane text=true >}} {{% tab Erlang %}}
326326
327327
```erlang
328328
{deps, [{opentelemetry_api, "~> {{% param versions.otelApi %}}"},
@@ -346,7 +346,7 @@ In the case of Erlang, the API Application will also need to be added to
346346
`src/otel_getting_started.app.src` and a `relx` section to `rebar.config`. In an
347347
Elixir project, a `releases` section needs to be added to `mix.exs`:
348348
349-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
349+
{{< tabpane text=true >}} {{% tab Erlang %}}
350350
351351
```erlang
352352
%% src/otel_getting_started.app.src
@@ -413,7 +413,7 @@ To configure OpenTelemetry to use a particular exporter, in this case
413413
the `exporter` for the span processor `otel_batch_processor`, a type of span
414414
processor that batches up multiple spans over a period of time:
415415
416-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
416+
{{< tabpane text=true >}} {{% tab Erlang %}}
417417
418418
```erlang
419419
%% config/sys.config.src
@@ -440,7 +440,7 @@ config :opentelemetry,
440440
Now that the dependencies and configuration are set up, we can create a module
441441
with a function `hello/0` that starts some spans:
442442
443-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
443+
{{< tabpane text=true >}} {{% tab Erlang %}}
444444
445445
```erlang
446446
%% apps/otel_getting_started/src/otel_getting_started.erl

content/en/docs/instrumentation/erlang/manual.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ interactive shell, a `Tracer` with a blank name and version is used.
5353
The created `Tracer`'s record can be looked up by the name of a module in the
5454
OTP Application:
5555

56-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
56+
{{< tabpane text=true >}} {{% tab Erlang %}}
5757

5858
```erlang
5959
opentelemetry:get_application_tracer(?MODULE)
@@ -75,7 +75,7 @@ This is how the Erlang and Elixir macros for starting and updating `Spans` get a
7575
Now that you have [Tracer](/docs/concepts/signals/traces/#tracer)s initialized,
7676
you can create [Spans](/docs/concepts/signals/traces/#spans).
7777

78-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
78+
{{< tabpane text=true >}} {{% tab Erlang %}}
7979

8080
```erlang
8181
?with_span(main, #{}, fun() ->
@@ -104,7 +104,7 @@ common kind of Span to create.
104104

105105
### Create Nested Spans
106106

107-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
107+
{{< tabpane text=true >}} {{% tab Erlang %}}
108108

109109
```erlang
110110
parent_function() ->
@@ -160,7 +160,7 @@ attaching the context and setting the new span as currently active in the
160160
process. The whole context should be attached in order to not lose other
161161
telemetry data like [baggage](/docs/specs/otel/baggage/api/).
162162

163-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
163+
{{< tabpane text=true >}} {{% tab Erlang %}}
164164

165165
```erlang
166166
SpanCtx = ?start_span(child),
@@ -204,7 +204,7 @@ Span Links that causally link it to another Span. A
204204
[Link](/docs/concepts/signals/traces/#span-links) needs a Span context to be
205205
created.
206206

207-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
207+
{{< tabpane text=true >}} {{% tab Erlang %}}
208208

209209
```erlang
210210
Parent = ?current_span_ctx,
@@ -243,7 +243,7 @@ The following example shows the two ways of setting attributes on a span by both
243243
setting an attribute in the start options and then again with `set_attributes`
244244
in the body of the span operation:
245245

246-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
246+
{{< tabpane text=true >}} {{% tab Erlang %}}
247247

248248
```erlang
249249
?with_span(my_span, #{attributes => [{'start-opts-attr', <<"start-opts-value">>}]},
@@ -276,7 +276,7 @@ from the specification and provided in
276276
For example, an instrumentation for an HTTP client or server would need to
277277
include semantic attributes like the scheme of the URL:
278278

279-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
279+
{{< tabpane text=true >}} {{% tab Erlang %}}
280280

281281
```erlang
282282
-include_lib("opentelemetry_semantic_conventions/include/trace.hrl").
@@ -306,7 +306,7 @@ message on an [Span](/docs/concepts/signals/traces/#spans) that represents a
306306
discrete event with no duration that can be tracked by a single timestamp. You
307307
can think of it like a primitive log.
308308

309-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
309+
{{< tabpane text=true >}} {{% tab Erlang %}}
310310

311311
```erlang
312312
?add_event(<<"Gonna try it">>),
@@ -330,7 +330,7 @@ Tracer.add_event("Did it!")
330330

331331
Events can also have attributes of their own:
332332

333-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
333+
{{< tabpane text=true >}} {{% tab Erlang %}}
334334

335335
```erlang
336336
?add_event(<<"Process exited with reason">>, [{pid, Pid)}, {reason, Reason}]))
@@ -354,7 +354,7 @@ could override the Error status with `StatusCode.OK`, but don’t set
354354

355355
The status can be set at any time before the span is finished:
356356

357-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
357+
{{< tabpane text=true >}} {{% tab Erlang %}}
358358

359359
```erlang
360360
-include_lib("opentelemetry_api/include/opentelemetry.hrl").

content/en/docs/instrumentation/erlang/propagation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ propagators. By default the global propagators used are the W3C
2626
These global propagators can be configured by the Application environment
2727
variable `text_map_propagators`:
2828

29-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
29+
{{< tabpane text=true >}} {{% tab Erlang %}}
3030

3131
```erlang
3232
%% sys.config
@@ -55,7 +55,7 @@ and `b3multi`.
5555
To manually inject or extract context the `otel_propagator_text_map` module can
5656
be used:
5757

58-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
58+
{{< tabpane text=true >}} {{% tab Erlang %}}
5959

6060
```erlang
6161
%% uses the context from the process dictionary to add to an empty list of headers

content/en/docs/instrumentation/erlang/resources.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ detectors use the OS environment variable `OTEL_RESOURCE_ATTRIBUTES` and the
2020
The detectors to use is a list of module names and can be configured in the
2121
Application configuration:
2222

23-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
23+
{{< tabpane text=true >}} {{% tab Erlang %}}
2424

2525
```erlang
2626
%% sys.config
@@ -61,7 +61,7 @@ OTEL_RESOURCE_ATTRIBUTES="deployment.environment=development"
6161
Alternatively, use the `resource` Application environment under the
6262
`opentelemetry` Application configuration of `sys.config` or `runtime.exs`:
6363

64-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
64+
{{< tabpane text=true >}} {{% tab Erlang %}}
6565

6666
```erlang
6767
%% sys.config

content/en/docs/instrumentation/erlang/sampling.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This tells the SDK to sample spans such that only 10% of Traces get created.
5858
Example in the Application configuration with a root sampler for sampling 10% of
5959
Traces and using the parent decision in the other cases:
6060

61-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
61+
{{< tabpane text=true >}} {{% tab Erlang %}}
6262

6363
```erlang
6464
%% config/sys.config.src
@@ -107,7 +107,7 @@ export OTEL_TRACES_SAMPLER="parentbased_always_off"
107107
Here's an example in the Application configuration with a root sampler that
108108
always samples and using the parent decision in the other cases:
109109

110-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
110+
{{< tabpane text=true >}} {{% tab Erlang %}}
111111

112112
```erlang
113113
%% config/sys.config.src
@@ -137,7 +137,7 @@ Custom samplers can be created by implementing the
137137
[`otel_sampler` behaviour](https://hexdocs.pm/opentelemetry/1.3.0/otel_sampler.html#callbacks).
138138
This example sampler:
139139

140-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
140+
{{< tabpane text=true >}} {{% tab Erlang %}}
141141

142142
```erlang
143143
-module(attribute_sampler).
@@ -202,7 +202,7 @@ passed as the sampler's configuration.
202202
Example configuration to not sample any Span with an attribute specifying the
203203
URL requested is `/healthcheck`:
204204

205-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
205+
{{< tabpane text=true >}} {{% tab Erlang %}}
206206

207207
```erlang
208208
{opentelemetry, {sampler, {attributes_sampler, #{'http.target' => <<"/healthcheck">>}}}}

content/en/docs/instrumentation/erlang/testing.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ validation.
1515
Only the `opentelemetry` and `opentelemetry_api` libraries are required for
1616
testing in Elixir/Erlang:
1717

18-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
18+
{{< tabpane text=true >}} {{% tab Erlang %}}
1919

2020
```erlang
2121
{deps, [{opentelemetry_api, "~> {{% param versions.otelApi %}}"},
@@ -39,7 +39,7 @@ Set your `exporter` to `:none` and the span processor to
3939
`:otel_simple_processor`. This ensure that your tests don't actually export data
4040
to a destination, and that spans can be analyzed after they are processed.
4141

42-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
42+
{{< tabpane text=true >}} {{% tab Erlang %}}
4343

4444
```erlang
4545
%% config/sys.config.src
@@ -69,7 +69,7 @@ A modified version of the `hello` function from the
6969
[Getting Started](/docs/instrumentation/erlang/getting-started/) guide will
7070
serve as our test case:
7171

72-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
72+
{{< tabpane text=true >}} {{% tab Erlang %}}
7373

7474
```erlang
7575
%% apps/otel_getting_started/src/otel_getting_started.erl
@@ -108,7 +108,7 @@ end
108108

109109
## Testing
110110

111-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Erlang %}}
111+
{{< tabpane text=true >}} {{% tab Erlang %}}
112112

113113
```erlang
114114
-module(otel_getting_started_SUITE).

content/en/docs/instrumentation/js/exporters.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ JavaScript) from the
109109
[Getting Started](/docs/instrumentation/js/getting-started/nodejs/) like the
110110
following to export traces and metrics via OTLP (`http/protobuf`) :
111111

112-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Typescript %}}
112+
{{< tabpane text=true >}} {{% tab Typescript %}}
113113

114114
```ts
115115
/*instrumentation.ts*/
@@ -374,7 +374,7 @@ npm install --save @opentelemetry/exporter-prometheus
374374
Update your OpenTelemetry configuration to use the exporter and to send data to
375375
your Prometheus backend:
376376

377-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Typescript %}}
377+
{{< tabpane text=true >}} {{% tab Typescript %}}
378378

379379
```ts
380380
import * as opentelemetry from '@opentelemetry/sdk-node';
@@ -449,7 +449,7 @@ npm install --save @opentelemetry/exporter-zipkin
449449
Update your OpenTelemetry configuration to use the exporter and to send data to
450450
your Zipkin backend:
451451

452-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Typescript %}}
452+
{{< tabpane text=true >}} {{% tab Typescript %}}
453453

454454
```ts
455455
import * as opentelemetry from '@opentelemetry/sdk-node';
@@ -495,7 +495,7 @@ allow you to either emit spans one-by-one or batched. If not specified otherwise
495495
the SDK will use the `BatchSpanProcessor`. If you do not want to batch your
496496
spans, you can use the `SimpleSpanProcessor` instead as follows:
497497

498-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab Typescript %}}
498+
{{< tabpane text=true >}} {{% tab Typescript %}}
499499

500500
```ts
501501
/*instrumentation.ts*/

content/en/docs/instrumentation/js/getting-started/nodejs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ npm install express
7070
Create a file named `app.ts` (or `app.js` if not using TypeScript) and add the
7171
following code to it:
7272

73-
{{% tabpane text=true langEqualsHeader=true %}} {{% tab TypeScript %}}
73+
{{% tabpane text=true %}} {{% tab TypeScript %}}
7474

7575
```ts
7676
/*app.ts*/
@@ -171,7 +171,7 @@ application code. One tool commonly used for this task is the
171171
Create a file named `instrumentation.ts` (or `instrumentation.js` if not using
172172
TypeScript) , which will contain your instrumentation setup code.
173173

174-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab TypeScript %}}
174+
{{< tabpane text=true >}} {{% tab TypeScript %}}
175175

176176
```ts
177177
/*instrumentation.ts*/
@@ -484,7 +484,7 @@ If you'd like to explore a more complex example, take a look at the
484484
Did something go wrong? You can enable diagnostic logging to validate that
485485
OpenTelemetry is initialized correctly:
486486

487-
{{< tabpane text=true langEqualsHeader=true >}} {{% tab TypeScript %}}
487+
{{< tabpane text=true >}} {{% tab TypeScript %}}
488488

489489
```ts
490490
/*instrumentation.ts*/

0 commit comments

Comments
 (0)