Home / Function/ anonymousSessionId() — astro Function Reference

anonymousSessionId() — astro Function Reference

Architecture documentation for the anonymousSessionId() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  24d9f83c_b801_8b2d_38e2_a1cec12f8f32["anonymousSessionId()"]
  aa586462_b436_2ea0_2f45_107a3d7bae01["AstroTelemetry"]
  24d9f83c_b801_8b2d_38e2_a1cec12f8f32 -->|defined in| aa586462_b436_2ea0_2f45_107a3d7bae01
  fe2c05fb_e168_3d3e_067e_79fe7e234b35["getConfigWithFallback()"]
  24d9f83c_b801_8b2d_38e2_a1cec12f8f32 -->|calls| fe2c05fb_e168_3d3e_067e_79fe7e234b35
  style 24d9f83c_b801_8b2d_38e2_a1cec12f8f32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/telemetry/src/index.ts lines 75–79

	private get anonymousSessionId(): string {
		// NOTE(fks): this value isn't global, so it can't use getConfigWithFallback().
		this._anonymousSessionId = this._anonymousSessionId || randomBytes(32).toString('hex');
		return this._anonymousSessionId;
	}

Domain

Subdomains

Frequently Asked Questions

What does anonymousSessionId() do?
anonymousSessionId() is a function in the astro codebase, defined in packages/telemetry/src/index.ts.
Where is anonymousSessionId() defined?
anonymousSessionId() is defined in packages/telemetry/src/index.ts at line 75.
What does anonymousSessionId() call?
anonymousSessionId() calls 1 function(s): getConfigWithFallback.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free