Skip to content

Conversation

@dcramer
Copy link
Owner

@dcramer dcramer commented Jun 16, 2020

No description provided.

src/sentry.tsx Outdated
}
const transaction = (tracingIntegration as any).constructor.getTransaction();
if (!transaction) {
console.warn("startSpan called without transaction");
Copy link
Owner Author

Choose a reason for hiding this comment

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

doesnt need to be a warning as its super common..

i also likely need to add new styles of transactions here. not sure what yet, but maybe when someone presses a tile its a new transaction. will experiment and see what can create value for patterns.

src/hass.tsx Outdated
resolve(payload);
} else if (payload.error) {
if (span) {
span.setStatus(SpanStatus.UnknownError);
Copy link
Owner Author

Choose a reason for hiding this comment

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

understanding how to map other systems status codes to our status codes will be a challenge for folks.. going to try an exercise of doing this w/ hass

@dcramer dcramer force-pushed the feat/tracing-instrumentation branch from 43f1159 to c2d6c66 Compare June 16, 2020 18:00
console.warn("startSpan called without tracing integration");
return null;
}
const transaction = (tracingIntegration as any).constructor.getTransaction();
Copy link
Owner Author

Choose a reason for hiding this comment

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

its not ideal that we have to attach a span to a transaction (aka we cant always return a span)

@dcramer dcramer force-pushed the feat/tracing-instrumentation branch from c2d6c66 to d3d83a6 Compare June 16, 2020 18:27
return transaction.startChild(options);
};

export const startTransaction = (options: {
Copy link
Owner Author

Choose a reason for hiding this comment

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

this doesnt actually seem to work well.. to some degree i wanted to manually bind a transaction but the tracing integration couples them to itself, and theres no real APIs afaik to manage them without the idle helper

Choose a reason for hiding this comment

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

Copy link
Owner Author

Choose a reason for hiding this comment

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

damn - didnt find that one :(

@dcramer dcramer force-pushed the feat/tracing-instrumentation branch from d3d83a6 to 8ece59c Compare June 16, 2020 18:57

handleOnTouch = async () => {
if (!this.onTouch) return;
Sentry.withScope(async (scope) => {
Copy link
Owner Author

Choose a reason for hiding this comment

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

this isnt actually overriding transaction names for these events, which means we end up with 'panelkit.boot' for all transactions

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