We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca418f0 commit 826d03dCopy full SHA for 826d03d
packages/core/src/api.ts
@@ -1,5 +1,5 @@
1
import { DsnLike } from '@sentry/types';
2
-import { urlEncode } from '@sentry/utils';
+import { timestampWithMs, urlEncode } from '@sentry/utils';
3
4
import { Dsn } from './dsn';
5
@@ -54,7 +54,7 @@ export class API {
54
public getRequestHeaders(clientName: string, clientVersion: string): { [key: string]: string } {
55
const dsn = this._dsnObject;
56
const header = [`Sentry sentry_version=${SENTRY_API_VERSION}`];
57
- header.push(`sentry_timestamp=${new Date().getTime()}`);
+ header.push(`sentry_timestamp=${timestampWithMs()}`);
58
header.push(`sentry_client=${clientName}/${clientVersion}`);
59
header.push(`sentry_key=${dsn.user}`);
60
if (dsn.pass) {
0 commit comments