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

Add ability to generate non nullable messages, convert Resource to test the change #2005

Merged
merged 5 commits into from
Nov 6, 2020

Conversation

bogdandrutu
Copy link
Member

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team October 26, 2020 18:29
@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #2005 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2005      +/-   ##
==========================================
- Coverage   92.10%   92.08%   -0.02%     
==========================================
  Files         278      278              
  Lines       17030    16978      -52     
==========================================
- Hits        15685    15635      -50     
+ Misses        924      923       -1     
+ Partials      421      420       -1     
Impacted Files Coverage Δ
consumer/pdata/generated_log.go 100.00% <ø> (ø)
consumer/pdata/generated_trace.go 100.00% <ø> (ø)
consumer/simple/metrics.go 98.87% <ø> (-0.01%) ⬇️
internal/goldendataset/metric_gen.go 100.00% <ø> (ø)
internal/processor/filterspan/filterspan.go 95.00% <ø> (-0.24%) ⬇️
processor/filterprocessor/metric_index.go 100.00% <ø> (ø)
processor/resourceprocessor/resource_processor.go 100.00% <ø> (ø)
...babilisticsamplerprocessor/probabilisticsampler.go 91.50% <ø> (-0.08%) ⬇️
receiver/fluentforwardreceiver/collector.go 100.00% <ø> (ø)
...eceiver/internal/scraper/processscraper/process.go 84.61% <ø> (-0.57%) ⬇️
... and 15 more

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 2453c8a...66e95a7. Read the comment docs.

@bogdandrutu bogdandrutu force-pushed the addmessagevalue branch 2 times, most recently from bff7ef3 to 8e4adc1 Compare October 27, 2020 18:45
@bogdandrutu bogdandrutu force-pushed the addmessagevalue branch 3 times, most recently from d303b0b to 518614a Compare October 30, 2020 23:33
Comment on lines 59 to 60
// If no ${lowerFieldName} available, it creates an empty message and associates it with this ${structName}.
//
// Empty initialized ${structName} will return "nil" ${returnType}.
//
// Important: This causes a runtime error if IsNil() returns "true".
Copy link
Member

Choose a reason for hiding this comment

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

This comments no longer apply, since it is not a pointer anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

It still applies because this is the getter for a non double pointer message, but the parent struct that embeds this message can still be double pointer.

consumer/pdata/generated_resource.go Outdated Show resolved Hide resolved
consumer/pdata/generated_resource.go Outdated Show resolved Hide resolved
exporter/loggingexporter/logging_exporter.go Outdated Show resolved Hide resolved
internal/processor/filterspan/filterspan.go Outdated Show resolved Hide resolved
processor/attributesprocessor/attributes_trace_test.go Outdated Show resolved Hide resolved
processor/resourceprocessor/resource_processor_test.go Outdated Show resolved Hide resolved
translator/internaldata/resource_to_oc.go Outdated Show resolved Hide resolved
translator/trace/jaeger/traces_to_jaegerproto.go Outdated Show resolved Hide resolved
cmd/pdatagen/internal/base_structs.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu force-pushed the addmessagevalue branch 2 times, most recently from 77a995e to d62d1c2 Compare November 4, 2020 19:16
@bogdandrutu
Copy link
Member Author

@tigrannajaryan PTAL

@tigrannajaryan
Copy link
Member

Conceptually LGTM. Should we start with slices first though since that will give us the most gains?

@bogdandrutu
Copy link
Member Author

@tigrannajaryan can you clarify "Conceptually LGTM. Should we start with slices first though since that will give us the most gains?". Instead of changing Resource to also add support to have slices of "messageValue" and start changing some of the slices?

I think it is fine, but "Resource" also gives us something and it is still important to have one object that is not part of the slice I think.

@tigrannajaryan
Copy link
Member

@tigrannajaryan can you clarify "Conceptually LGTM. Should we start with slices first though since that will give us the most gains?". Instead of changing Resource to also add support to have slices of "messageValue" and start changing some of the slices?

I think it is fine, but "Resource" also gives us something and it is still important to have one object that is not part of the slice I think.

If I understand correctly one of the goals of this change is improving performance. We will not see much gains from changing the Resource from pointer to value type. The most gains can be seen from the most numerous structs, e.g. Span, which are part of InstrumentationSpans slice.

I am fine if you want to still go ahead with the Resource and use it as the playground for the upcoming changes for other structs.

@bogdandrutu
Copy link
Member Author

That was my intention, to use this as a playground. Changing a slice as well would make the change to big.

Also in this PR we improved couple of other things like the service name.

@tigrannajaryan
Copy link
Member

@bogdandrutu please resolve the conflicts.

…st the change

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit c6b8f28 into open-telemetry:master Nov 6, 2020
@bogdandrutu bogdandrutu deleted the addmessagevalue branch November 6, 2020 18:37
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…ry#2005)

* Split stdout exporter into stdouttrace and stdoutmetric

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Remove unused options from stdouttrace and stdoutmetric exporters

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update stdout exporter references in website docs

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update docs to include correct import paths, properly describe exporter scope

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Remove pointless options to disable signals from what are now single-signal exporters

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
…_client`, and make it contains all symbols needed. (open-telemetry#2005)

Fix open-telemetry#1998

Delegate all API calls of gRPC into `opentelemetry_exporter_otlp_grpc_client`, and make it contains all symbols needed.
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.

2 participants