WHOOSH-LABELS-004: Standardize Automatic Label Creation to Match Ecosystem Convention #6

Merged
tony merged 3 commits from feature/standardized-label-ecosystem into main 2025-10-12 21:14:10 +00:00
Showing only changes of commit 9f57e48cef - Show all commits

View File

@@ -15,7 +15,7 @@ import (
"github.com/docker/docker/client"
"github.com/rs/zerolog/log"
"go.opentelemetry.io/otel/attribute"
"github.com/chorus-services/whoosh/internal/tracing"
)
@@ -456,7 +456,17 @@ func (sm *SwarmManager) ListAgentServices() ([]swarm.Service, error) {
// GetServiceLogs retrieves logs for a service
func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) {
options := types.ContainerLogsOptions{
// Create logs options struct inline to avoid import issues
options := struct {
ShowStdout bool
ShowStderr bool
Since string
Until string
Timestamps bool
Follow bool
Tail string
Details bool
}{
ShowStdout: true,
ShowStderr: true,
Tail: fmt.Sprintf("%d", lines),