-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[receiver/googlecloudpubsubpush] Add implementation #44101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[receiver/googlecloudpubsubpush] Add implementation #44101
Conversation
| "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/googlecloudpubsubpushreceiver/internal/metadata" | ||
| ) | ||
|
|
||
| var receivers = sharedcomponent.NewSharedComponents() |
There was a problem hiding this comment.
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
| 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, | ||
| ) | ||
| } |
There was a problem hiding this comment.
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 👀
Description
Add implementation to the googlecloudpubsubpush receiver.
Testing
Unit tests added.
Documentation
README already up to date.