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 [ion](file:///Users/naman/JM/repos/JMDT-Sequencer-Orchestrator/internal/config/config.go#154-164) library's `OTELConfig` struct currently lacks explicit fields for authentication credentials (e.g., `Username` and `Password`). However, it exposes a `Headers` field (`map[string]string`) which is passed to the underlying OpenTelemetry exporter.
5
+
6
+
## Authentication Implementation
7
+
To support Basic Authentication (commonly used with OTel collectors/receivers):
8
+
1. **Manual Header Construction**: Users must manually construct the `Authorization` header.
9
+
- Format: `Basic <base64(username:password)>`
10
+
2. **Configuration**: This header key-value pair is then added to `ion.OTELConfig.Headers`.
11
+
12
+
## Implementation in Orchestrator
13
+
We have successfully implemented this pattern in [cmd/orchestrator/main.go](file:///Users/naman/JM/repos/JMDT-Sequencer-Orchestrator/cmd/orchestrator/main.go):
14
+
```go
15
+
// Construct Basic Auth header manually
16
+
if cfg.OTelUsername != "" && cfg.OTelPassword != "" {
0 commit comments