Skip to content

Conversation

@constanca-m
Copy link
Contributor

Description

Add implementation to the googlecloudpubsubpush receiver.

Testing

Unit tests added.

Documentation

README already up to date.

"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/googlecloudpubsubpushreceiver/internal/metadata"
)

var receivers = sharedcomponent.NewSharedComponents()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added them to a shared receivers map @axw

Comment on lines +107 to +124
if p.nextLogs != nil {
start = true
logsUnmarshaler, errLoad := loadEncodingExtension[encoding.LogsUnmarshalerExtension](
host, p.cfg.Encoding, "logs",
)
if errLoad != nil {
return fmt.Errorf("failed to load encoding extension: %w", errLoad)
}
addHandlerFunc(
mux,
logsEndpoint,
logsUnmarshaler.UnmarshalLogs,
p.nextLogs.ConsumeLogs,
p.storageClient,
p.cfg.IncludeMetadata,
p.settings.Logger,
)
}
Copy link
Contributor Author

@constanca-m constanca-m Nov 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic changed a bit to what we have internally. This is so we can adapt to other signals easily. Logs will now be sent to a logs endpoint, /logs instead of / @axw Is that ok? I know for AWS firehose receiver we wanted to remove this, but this seems necesssary 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants