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

[CT-2818] Anonymous usage tracking for semantic object definitions #8077

Closed
Tracked by #7498
jtcohen6 opened this issue Jul 12, 2023 · 0 comments · Fixed by #8078
Closed
Tracked by #7498

[CT-2818] Anonymous usage tracking for semantic object definitions #8077

jtcohen6 opened this issue Jul 12, 2023 · 0 comments · Fixed by #8078
Assignees
Labels
semantic Issues related to the semantic layer

Comments

@jtcohen6
Copy link
Contributor

def print_compile_stats(stats):
names = {
NodeType.Model: "model",
NodeType.Test: "test",
NodeType.Snapshot: "snapshot",
NodeType.Analysis: "analysis",
NodeType.Macro: "macro",
NodeType.Operation: "operation",
NodeType.Seed: "seed file",
NodeType.Source: "source",
NodeType.Exposure: "exposure",
NodeType.Metric: "metric",
NodeType.Group: "group",
}
results = {k: 0 for k in names.keys()}
results.update(stats)
# create tracking event for resource_counts
if dbt.tracking.active_user is not None:
resource_counts = {k.pluralize(): v for k, v in results.items()}
dbt.tracking.track_resource_counts(resource_counts)

  • Tracking should already be in place for metrics
  • It would be straightforward to add semantic_models
  • While I'm not sure, it seems like it would be a bigger lift to track counts of dimensions and entities

This issue can be closed when:

  • We can guarantee that tracking is working for metrics + semantic_models
  • We have investigated whether there is a straightforward way to extend this tracking to dimensions + entities
@jtcohen6 jtcohen6 added the semantic Issues related to the semantic layer label Jul 12, 2023
@github-actions github-actions bot changed the title Anonymous usage tracking for semantic object definitions [CT-2818] Anonymous usage tracking for semantic object definitions Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semantic Issues related to the semantic layer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants