Skip to content

Commit 62a1b59

Browse files
authored
Add the application plugin to the otlp example (#361)
1 parent ab98185 commit 62a1b59

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

otlp/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### Running the OTLP example
2+
3+
Assuming you're on a unix-alike (mac, linux, etc):
4+
5+
In a shell:
6+
```shell
7+
cd docker
8+
docker-compose up
9+
```
10+
11+
In a separate shell:
12+
```shell
13+
../gradlew run
14+
```

otlp/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id("java")
3+
id("application")
34
}
45

56
description = "OpenTelemetry Example for OTLP Exporters"
@@ -11,6 +12,10 @@ java {
1112
}
1213
}
1314

15+
application {
16+
mainClass = "io.opentelemetry.example.otlp.OtlpExporterExample"
17+
}
18+
1419
dependencies {
1520
implementation("io.opentelemetry:opentelemetry-api")
1621
implementation("io.opentelemetry:opentelemetry-sdk")

0 commit comments

Comments
 (0)