Skip to content

Commit b7f259a

Browse files
authored
[receiver/googlecloudpubsubpush] Add implementation (#44101)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Add implementation to the googlecloudpubsubpush receiver. <!--Describe what testing was performed and which tests were added.--> #### Testing Unit tests added. <!--Describe the documentation added.--> #### Documentation README already up to date.
1 parent a286349 commit b7f259a

File tree

8 files changed

+631
-50
lines changed

8 files changed

+631
-50
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7+
component: receiver/googlecloudpubsubpush
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add implementation to googlecloudpubsubpush receiver.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [44101]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: []

receiver/googlecloudpubsubpushreceiver/factory.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ func NewFactory() receiver.Factory {
2323

2424
func createLogsReceiver(
2525
_ context.Context,
26-
_ receiver.Settings,
26+
set receiver.Settings,
2727
cfg component.Config,
28-
_ consumer.Logs,
28+
nextLogs consumer.Logs,
2929
) (receiver.Logs, error) {
30-
return newPubSubPushReceiver(cfg.(*Config)), nil
30+
return newPubSubPushReceiver(cfg.(*Config), set, nextLogs), nil
3131
}

receiver/googlecloudpubsubpushreceiver/generated_component_test.go

Lines changed: 0 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/googlecloudpubsubpushreceiver/go.mod

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/google
33
go 1.24.0
44

55
require (
6+
cloud.google.com/go/storage v1.57.2
7+
github.com/goccy/go-json v0.10.5
68
github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.140.1
79
github.com/stretchr/testify v1.11.1
10+
go.opentelemetry.io/collector/client v1.46.0
811
go.opentelemetry.io/collector/component v1.46.0
12+
go.opentelemetry.io/collector/component/componentstatus v0.140.0
913
go.opentelemetry.io/collector/component/componenttest v0.140.0
1014
go.opentelemetry.io/collector/config/confighttp v0.140.0
1115
go.opentelemetry.io/collector/config/configoptional v1.46.0
1216
go.opentelemetry.io/collector/config/configtls v1.46.0
1317
go.opentelemetry.io/collector/confmap v1.46.0
1418
go.opentelemetry.io/collector/confmap/xconfmap v0.140.0
1519
go.opentelemetry.io/collector/consumer v1.46.0
20+
go.opentelemetry.io/collector/consumer/consumererror v0.140.0
1621
go.opentelemetry.io/collector/consumer/consumertest v0.140.0
1722
go.opentelemetry.io/collector/extension v1.46.0
1823
go.opentelemetry.io/collector/pdata v1.46.0
@@ -23,17 +28,35 @@ require (
2328
)
2429

2530
require (
31+
cel.dev/expr v0.24.0 // indirect
32+
cloud.google.com/go v0.121.6 // indirect
33+
cloud.google.com/go/auth v0.16.5 // indirect
34+
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
35+
cloud.google.com/go/compute/metadata v0.8.0 // indirect
36+
cloud.google.com/go/iam v1.5.2 // indirect
37+
cloud.google.com/go/monitoring v1.24.2 // indirect
38+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect
39+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.53.0 // indirect
40+
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.53.0 // indirect
41+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
42+
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
2643
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
44+
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
45+
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
2746
github.com/felixge/httpsnoop v1.0.4 // indirect
2847
github.com/foxboron/go-tpm-keyfiles v0.0.0-20250903184740-5d135037bd4d // indirect
2948
github.com/fsnotify/fsnotify v1.9.0 // indirect
49+
github.com/go-jose/go-jose/v4 v4.1.2 // indirect
3050
github.com/go-logr/logr v1.4.3 // indirect
3151
github.com/go-logr/stdr v1.2.2 // indirect
3252
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
3353
github.com/gobwas/glob v0.2.3 // indirect
3454
github.com/golang/snappy v1.0.0 // indirect
3555
github.com/google/go-tpm v0.9.7 // indirect
56+
github.com/google/s2a-go v0.1.9 // indirect
3657
github.com/google/uuid v1.6.0 // indirect
58+
github.com/googleapis/enterprise-certificate-proxy v0.3.6 // indirect
59+
github.com/googleapis/gax-go/v2 v2.15.0 // indirect
3760
github.com/hashicorp/go-version v1.7.0 // indirect
3861
github.com/json-iterator/go v1.1.12 // indirect
3962
github.com/klauspost/compress v1.18.1 // indirect
@@ -45,22 +68,25 @@ require (
4568
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4669
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
4770
github.com/pierrec/lz4/v4 v4.1.22 // indirect
71+
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
4872
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4973
github.com/rs/cors v1.11.1 // indirect
74+
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
75+
github.com/zeebo/errs v1.4.0 // indirect
5076
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
51-
go.opentelemetry.io/collector/client v1.46.0 // indirect
5277
go.opentelemetry.io/collector/config/configauth v1.46.0 // indirect
5378
go.opentelemetry.io/collector/config/configcompression v1.46.0 // indirect
5479
go.opentelemetry.io/collector/config/configmiddleware v1.46.0 // indirect
5580
go.opentelemetry.io/collector/config/configopaque v1.46.0 // indirect
56-
go.opentelemetry.io/collector/consumer/consumererror v0.140.0 // indirect
5781
go.opentelemetry.io/collector/consumer/xconsumer v0.140.0 // indirect
5882
go.opentelemetry.io/collector/extension/extensionauth v1.46.0 // indirect
5983
go.opentelemetry.io/collector/extension/extensionmiddleware v0.140.0 // indirect
6084
go.opentelemetry.io/collector/featuregate v1.46.0 // indirect
6185
go.opentelemetry.io/collector/pdata/pprofile v0.140.0 // indirect
6286
go.opentelemetry.io/collector/pipeline v1.46.0 // indirect
6387
go.opentelemetry.io/collector/receiver/xreceiver v0.140.0 // indirect
88+
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 // indirect
89+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
6490
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
6591
go.opentelemetry.io/otel v1.38.0 // indirect
6692
go.opentelemetry.io/otel/metric v1.38.0 // indirect
@@ -71,8 +97,14 @@ require (
7197
go.yaml.in/yaml/v3 v3.0.4 // indirect
7298
golang.org/x/crypto v0.43.0 // indirect
7399
golang.org/x/net v0.45.0 // indirect
100+
golang.org/x/oauth2 v0.30.0 // indirect
101+
golang.org/x/sync v0.17.0 // indirect
74102
golang.org/x/sys v0.37.0 // indirect
75103
golang.org/x/text v0.30.0 // indirect
104+
golang.org/x/time v0.12.0 // indirect
105+
google.golang.org/api v0.247.0 // indirect
106+
google.golang.org/genproto v0.0.0-20250603155806-513f23925822 // indirect
107+
google.golang.org/genproto/googleapis/api v0.0.0-20250818200422-3122310a409c // indirect
76108
google.golang.org/genproto/googleapis/rpc v0.0.0-20250818200422-3122310a409c // indirect
77109
google.golang.org/grpc v1.76.0 // indirect
78110
google.golang.org/protobuf v1.36.10 // indirect

0 commit comments

Comments
 (0)