You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Axiom Cloudflare Workers app provides granular detail about the traffic coming in from your monitored sites. This includes edge requests, static resources, client auth, response duration, and status. Axiom gives you an all-at-once view of key Cloudflare Workers metrics and logs, out of the box, with our dynamic Cloudflare Workers dashboard.
13
13
@@ -34,7 +34,7 @@ Axiom Cloudflare Workers is an open-source project and welcomes your contributio
34
34
const axiomToken = "API_TOKEN"
35
35
```
36
36
37
-
<Replacement />
37
+
<ReplaceDatasetToken />
38
38
39
39
1. Add triggers for the worker. For example, add a route trigger using the [Cloudflare documentation](https://developers.cloudflare.com/workers/configuration/routing/routes/#set-up-a-route-in-the-dashboard).
OpenTelemetry offers a [single set of APIs and libraries](https://opentelemetry.io/docs/languages/go/instrumentation/) that standardize how you collect and transfer telemetry data. This guide focuses on setting up OpenTelemetry in a Go app to send traces to Axiom.
11
13
12
14
## Prerequisites
@@ -222,7 +224,7 @@ const (
222
224
serviceName = "axiom-go-otel"// Name of the service for tracing.
223
225
serviceVersion = "0.1.0"// Version of the service.
@@ -247,7 +249,7 @@ func InstallExportPipeline(ctx context.Context) (func(context.Context) error, er
247
249
otlptracehttp.WithEndpoint(otlpEndpoint),
248
250
otlptracehttp.WithHeaders(map[string]string{
249
251
"Authorization": bearerToken,
250
-
"X-AXIOM-DATASET": "$DATASET_NAME",
252
+
"X-AXIOM-DATASET": "DATASET_NAME",
251
253
}),
252
254
otlptracehttp.WithTLSClientConfig(&tls.Config{}),
253
255
)
@@ -272,6 +274,8 @@ func InstallExportPipeline(ctx context.Context) (func(context.Context) error, er
272
274
}
273
275
```
274
276
277
+
<ReplaceDatasetToken />
278
+
275
279
## Run the app
276
280
277
281
To run the app, execute both `exporter.go` and `main.go`. Use the command `go run main.go exporter.go` to start the app. Once your app is running, traces collected by your app are exported to Axiom. The server starts on the specified port, and you can interact with it by sending requests to the `/rolldice` endpoint.
OpenTelemetry provides a unified approach to collecting telemetry data from your Java applications. This page demonstrates how to configure OpenTelemetry in a Java app to send telemetry data to Axiom using the OpenTelemetry SDK.
14
14
@@ -144,7 +144,7 @@ public class OtelConfiguration {
OpenTelemetry provides a [unified approach to collecting telemetry data](https://opentelemetry.io/docs/languages/js/instrumentation/) from your Node.js and TypeScript apps. This guide demonstrates how to configure OpenTelemetry in a Node.js app to send telemetry data to Axiom using OpenTelemetry SDK.
11
13
12
14
## Prerequisites
@@ -110,8 +112,8 @@ import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'
110
112
consttraceExporter=newOTLPTraceExporter({
111
113
url:'https://api.axiom.co/v1/traces',
112
114
headers: {
113
-
'Authorization':'Bearer $API_TOKEN',
114
-
'X-Axiom-Dataset':'$DATASET'
115
+
'Authorization':'Bearer API_TOKEN',
116
+
'X-Axiom-Dataset':'DATASET_NAME'
115
117
},
116
118
});
117
119
@@ -136,6 +138,8 @@ const sdk = new NodeSDK({
136
138
sdk.start();
137
139
```
138
140
141
+
<ReplaceDatasetToken />
142
+
139
143
## Installing the Dependencies
140
144
141
145
Navigate to the root directory of your project and run the following command to install the required dependencies:
Log4j is a Java logging framework developed by the Apache Software Foundation and widely used in the Java community. This page covers how to get started with Log4j, configure it to forward log messages to Fluentd, and send logs to Axiom.
15
15
@@ -369,7 +369,7 @@ To configure Fluentd, create a configuration file. Create a new file named `flue
This guide explains integrating Axiom as a logging solution in a Laravel app. Using Axiom’s capabilities with a custom log channel, you can efficiently send your app’s logs to Axiom for storage, analysis, and monitoring. This integration uses Monolog, Laravel’s underlying logging library, to create a custom logging handler that forwards logs to Axiom.
11
13
12
14
## Prerequisites
@@ -130,12 +132,14 @@ The `default` configuration specifies the primary channel Laravel uses for loggi
130
132
131
133
```bash
132
134
LOG_CHANNEL=axiom
133
-
AXIOM_API_TOKEN=$API_TOKEN
134
-
AXIOM_DATASET=$DATASET
135
+
AXIOM_API_TOKEN=API_TOKEN
136
+
AXIOM_DATASET=DATASET_NAME
135
137
LOG_LEVEL=debug
136
138
LOG_DEPRECATIONS_CHANNEL=null
137
139
```
138
140
141
+
<ReplaceDatasetToken />
142
+
139
143
### Deprecations log channel
140
144
141
145
The `deprecations` channel is configured to handle logs about deprecated features in PHP and libraries, helping you prepare for updates. By default, it’s set to ignore these warnings, but you can adjust this to direct deprecation logs to a specific channel if needed.
This guide provides step-by-step instructions on how to send logs from a Ruby on Rails application to Axiom using the Faraday library. By following this guide, you configure your Rails app to send logs to Axiom, allowing you to monitor and analyze your application logs effectively.
0 commit comments