-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk-exporter: add
OtlpHttpSpanExporter
- Loading branch information
Showing
15 changed files
with
1,481 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
sdk-exporter/trace/docker/config/otel-collector-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
receivers: | ||
otlp: | ||
protocols: # enable OpenTelemetry Protocol receiver, both gRPC and HTTP | ||
grpc: | ||
http: | ||
|
||
exporters: | ||
jaeger: # export received traces to Jaeger | ||
endpoint: jaeger:14250 | ||
tls: | ||
insecure: true | ||
|
||
processors: | ||
batch: | ||
timeout: 0 # send data immediately | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [jaeger] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.7' | ||
services: | ||
otel-collector: # receives application metrics and traces via gRPC or HTTP protocol | ||
image: otel/opentelemetry-collector-contrib | ||
command: [--config=/etc/otel-collector-config.yaml] | ||
volumes: | ||
- "./config/otel-collector-config.yaml:/etc/otel-collector-config.yaml" | ||
ports: | ||
- "4317:4317" # OTLP gRPC receiver | ||
- "4318:4318" # OTLP http receiver | ||
|
||
jaeger: # stores traces received from the OpenTelemetry Collector | ||
image: jaegertracing/all-in-one:latest | ||
ports: | ||
- "14250:14250" | ||
- "16685:16685" # GRPC | ||
- "16686:16686" # UI |
21 changes: 21 additions & 0 deletions
21
...race/js/src/test/scala/org/typelevel/otel4s/sdk/exporter/otlp/ExporterSuitePlatform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2023 Typelevel | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.typelevel.otel4s.sdk.exporter.otlp | ||
|
||
import munit.CatsEffectSuite | ||
|
||
trait ExporterSuitePlatform { self: CatsEffectSuite => } |
21 changes: 21 additions & 0 deletions
21
...ace/jvm/src/test/scala/org/typelevel/otel4s/sdk/exporter/otlp/ExporterSuitePlatform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2023 Typelevel | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.typelevel.otel4s.sdk.exporter.otlp | ||
|
||
import munit.CatsEffectSuite | ||
|
||
trait ExporterSuitePlatform { self: CatsEffectSuite => } |
25 changes: 25 additions & 0 deletions
25
.../native/src/test/scala/org/typelevel/otel4s/sdk/exporter/otlp/ExporterSuitePlatform.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2023 Typelevel | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.typelevel.otel4s.sdk.exporter.otlp | ||
|
||
import cats.effect.unsafe.IORuntime | ||
import epollcat.unsafe.EpollRuntime | ||
import munit.CatsEffectSuite | ||
|
||
trait ExporterSuitePlatform { self: CatsEffectSuite => | ||
override def munitIORuntime: IORuntime = EpollRuntime.global | ||
} |
Oops, something went wrong.