Skip to content
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

Bug 1655477 Support X-Source-Tags header #1328

Merged
merged 1 commit into from
Aug 3, 2020
Merged

Bug 1655477 Support X-Source-Tags header #1328

merged 1 commit into from
Aug 3, 2020

Conversation

jklukas
Copy link
Contributor

@jklukas jklukas commented Aug 3, 2020

Will also need a corresponding change in mozilla-pipeline-schemas (see mozilla-services/mozilla-pipeline-schemas#587).

@jklukas jklukas requested a review from relud August 3, 2020 17:20
@@ -42,7 +42,8 @@

private static final String HEADER = "header";
private static final List<String> HEADER_ATTRIBUTES = ImmutableList //
.of(Attribute.DATE, Attribute.DNT, Attribute.X_PINGSENDER_VERSION, Attribute.X_DEBUG_ID);
.of(Attribute.DATE, Attribute.DNT, Attribute.X_PINGSENDER_VERSION, Attribute.X_DEBUG_ID,
Attribute.X_SOURCE_TAGS);
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'm assuming here that we'll include x_debug_id as a simple string field in BigQuery, and potentially update user-facing views to transform the string to a list. This seems cleaner than trying to parse the field to a list within the pipeline.

@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2020

Codecov Report

Merging #1328 into master will increase coverage by 4.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1328      +/-   ##
============================================
+ Coverage     80.80%   85.02%   +4.21%     
- Complexity      665      681      +16     
============================================
  Files            98       98              
  Lines          4126     4126              
  Branches        396      396              
============================================
+ Hits           3334     3508     +174     
+ Misses          663      487     -176     
- Partials        129      131       +2     
Flag Coverage Δ Complexity Δ
#ingestion_beam 82.75% <100.00%> (ø) 610.00 <0.00> (ø)
#ingestion_edge 100.00% <ø> (ø) 0.00 <ø> (ø)
#ingestion_sink 82.04% <ø> (+16.13%) 176.00 <ø> (+17.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
ingestion-edge/ingestion_edge/config.py 100.00% <ø> (ø) 0.00 <0.00> (ø)
...ava/com/mozilla/telemetry/decoder/AddMetadata.java 95.12% <100.00%> (ø) 53.00 <0.00> (ø)
...illa/telemetry/ingestion/sink/util/BatchWrite.java 100.00% <0.00%> (+12.00%) 13.00% <0.00%> (+2.00%)
...com/mozilla/telemetry/ingestion/sink/util/Env.java 73.91% <0.00%> (+13.04%) 13.00% <0.00%> (+3.00%)
...la/telemetry/ingestion/sink/config/SinkConfig.java 89.56% <0.00%> (+60.43%) 13.00% <0.00%> (+5.00%)
...ngestion/sink/transform/BlobIdToPubsubMessage.java 75.00% <0.00%> (+75.00%) 2.00% <0.00%> (+2.00%)
...om/mozilla/telemetry/ingestion/sink/io/Pubsub.java 82.97% <0.00%> (+82.97%) 0.00% <0.00%> (ø%)
...ngestion/sink/transform/DocumentTypePredicate.java 83.33% <0.00%> (+83.33%) 4.00% <0.00%> (+4.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9272289...b87465f. Read the comment docs.

jklukas added a commit to mozilla-services/mozilla-pipeline-schemas that referenced this pull request Aug 3, 2020
@whd
Copy link
Member

whd commented Aug 3, 2020

For my convenience also update https://github.com/mozilla/gcp-ingestion/blob/master/ingestion-edge/ingestion_edge/config.py#L55 (EDIT: it's already there)

@jklukas jklukas merged commit 0893023 into master Aug 3, 2020
@jklukas jklukas deleted the x-source-tags branch August 3, 2020 19:02
jklukas added a commit to mozilla-services/mozilla-pipeline-schemas that referenced this pull request Aug 3, 2020
jklukas added a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and
in beam.
jklukas added a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and in beam.
relud pushed a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and in beam.
relud pushed a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and in beam.
relud pushed a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and in beam.
relud pushed a commit that referenced this pull request Aug 3, 2020
Fixup to #1328 since it looks like we have this logic duplicated in core and in beam.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants