Skip to content

Conversation

@aaron-steinfeld
Copy link
Contributor

Description

Motivation for this change is discussed in hypertrace/entity-service#123

Testing

Verified E2E, updated UTs

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@aaron-steinfeld aaron-steinfeld requested review from a team and avinashkolluru August 10, 2021 13:29
@codecov
Copy link

codecov bot commented Aug 10, 2021

Codecov Report

Merging #248 (b64156d) into main (fb0e15a) will increase coverage by 0.00%.
The diff coverage is 61.90%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #248   +/-   ##
=========================================
  Coverage     80.30%   80.30%           
+ Complexity     1150     1145    -5     
=========================================
  Files           101      101           
  Lines          4447     4442    -5     
  Branches        416      417    +1     
=========================================
- Hits           3571     3567    -4     
+ Misses          680      679    -1     
  Partials        196      196           
Flag Coverage Δ
unit 80.30% <61.90%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...cher/enrichment/clients/DefaultClientRegistry.java 0.00% <0.00%> (ø)
...icher/enrichment/enrichers/EntitySpanEnricher.java 0.00% <0.00%> (ø)
...ace/accessor/entities/AttributeValueConverter.java 70.00% <ø> (ø)
...e/trace/accessor/entities/AvroEntityConverter.java 71.18% <ø> (ø)
.../accessor/entities/TraceEntityAccessorBuilder.java 0.00% <0.00%> (ø)
...ce/accessor/entities/TraceEntityClientContext.java 0.00% <ø> (ø)
.../accessor/entities/DefaultTraceEntityAccessor.java 96.59% <100.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 fb0e15a...b64156d. Read the comment docs.

@github-actions

This comment has been minimized.

Channel getConfigServiceChannel();

TraceEntityReader<StructuredTrace, Event> getEntityReader();
TraceEntityAccessor getTraceEntityAccessor();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this is both reading and writing, tried my hand at a rename... happy to take suggestions though!

import org.hypertrace.core.datamodel.Event;
import org.hypertrace.core.datamodel.StructuredTrace;

public interface TraceEntityAccessor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the previously parameterized version was always used with the same parameters, so removed them.

@@ -1,4 +1,4 @@
package org.hypertrace.trace.reader.entities;
package org.hypertrace.trace.accessor.entities;
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 moved this package, but I left the attribute reader and the project named trace-reader to keep the diff from getting too crazy. I'll rename those packages/classes and the project itself later (probably when we start supporting write for attributes, unless there's a desire to do it sooner).

@aaron-steinfeld aaron-steinfeld merged commit 9f6fca5 into main Aug 10, 2021
@aaron-steinfeld aaron-steinfeld deleted the entity-write-perf branch August 10, 2021 14:49
@github-actions
Copy link

Unit Test Results

  69 files  ±0    69 suites  ±0   45s ⏱️ -11s
364 tests  - 2  364 ✔️  - 2  0 💤 ±0  0 ❌ ±0 

Results for commit 9f6fca5. ± Comparison against base commit fb0e15a.

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.

3 participants