Skip to content

Commit

Permalink
πŸ‘Œ move contextHistory module in the tools folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Nov 17, 2021
1 parent f8ac5f7 commit 2c3cedf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/rum-core/src/domain/parentContexts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { RelativeTime, relativeToClocks } from '@datadog/browser-core'
import { createRumSessionMock, RumSessionMock } from '../../test/mockRumSession'
import { setup, TestSetupBuilder } from '../../test/specHelper'
import { CLEAR_OLD_CONTEXTS_INTERVAL } from '../tools/contextHistory'
import { LifeCycleEventType } from './lifeCycle'
import {
ACTION_CONTEXT_TIME_OUT_DELAY,
Expand All @@ -10,7 +11,6 @@ import {
} from './parentContexts'
import { AutoAction } from './rumEventsCollection/action/trackActions'
import { ViewCreatedEvent } from './rumEventsCollection/view/trackViews'
import { CLEAR_OLD_CONTEXTS_INTERVAL } from './contextHistory'

describe('parentContexts', () => {
const FAKE_ID = 'fake'
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/src/domain/parentContexts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ONE_MINUTE, RelativeTime, SESSION_TIME_OUT_DELAY } from '@datadog/browser-core'
import { ActionContext, ViewContext } from '../rawRumEvent.types'
import { ContextHistory } from '../tools/contextHistory'
import { LifeCycle, LifeCycleEventType } from './lifeCycle'
import { AutoAction, AutoActionCreatedEvent } from './rumEventsCollection/action/trackActions'
import { ViewCreatedEvent } from './rumEventsCollection/view/trackViews'
import { RumSession } from './rumSession'
import { ContextHistory } from './contextHistory'

export const VIEW_CONTEXT_TIME_OUT_DELAY = SESSION_TIME_OUT_DELAY
export const ACTION_CONTEXT_TIME_OUT_DELAY = 5 * ONE_MINUTE // arbitrary
Expand Down
2 changes: 1 addition & 1 deletion packages/rum-core/src/domain/urlContexts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RelativeTime, Observable, SESSION_TIME_OUT_DELAY, relativeNow } from '@datadog/browser-core'
import { UrlContext } from '../rawRumEvent.types'
import { LocationChange } from '../browser/locationChangeObservable'
import { ContextHistory } from './contextHistory'
import { ContextHistory } from '../tools/contextHistory'
import { LifeCycle, LifeCycleEventType } from './lifeCycle'

/**
Expand Down

0 comments on commit 2c3cedf

Please sign in to comment.