Skip to content

Commit 4b35daf

Browse files
HazATkamilogorek
authored andcommitted
meta: beta.3
1 parent 307dd0f commit 4b35daf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/core/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class API {
5454
public getRequestHeaders(clientName: string, clientVersion: string): { [key: string]: string } {
5555
const dsn = this._dsnObject;
5656
const header = [`Sentry sentry_version=${SENTRY_API_VERSION}`];
57-
header.push(`sentry_timestamp=${timestampWithMs()}`);
57+
header.push(`sentry_timestamp=${timestampWithMs()}`); // TODO: This can be removed
5858
header.push(`sentry_client=${clientName}/${clientVersion}`);
5959
header.push(`sentry_key=${dsn.user}`);
6060
if (dsn.pass) {

packages/hub/src/hub.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ export class Hub implements HubInterface {
433433
}
434434

435435
if (passedSpan === undefined) {
436+
logger.warn('There was no Span on the Scope and none was passed, do nothing.');
436437
// We will do nothing since nothing was passed and there is no Span on the scope.
437438
return undefined;
438439
}

packages/minimal/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,5 @@ export function startSpan(spanContext?: SpanContext, bindOnScope?: boolean): Spa
190190
* @param span `Span` instance that was created by {@link startSpan}
191191
*/
192192
export function finishSpan(span?: Span): string | undefined {
193-
return callOnHub<string | undefined>('startSpan', span);
193+
return callOnHub<string | undefined>('finishSpan', span);
194194
}

0 commit comments

Comments
 (0)